This function is going to be reused for lifecycles as well. Signed-off-by: Alex Vanin <a.vanin@yadro.com>