CLOUDIFY-2022 fix cosmo properties retrival and added license headers to files