class ToscaResourceInstaller {

    protected ConfigurationResourceCustomization getConfigurationResourceCustomization(IEntityDetails configEntity,
            ToscaResourceStructure toscaResourceStructure, ServiceProxyResourceCustomization spResourceCustomization,
            Service service) {
        Metadata metadata = configEntity.getMetadata();

        ConfigurationResource configResource = getConfigurationResource(configEntity);

        ConfigurationResourceCustomization configCustomizationResource = new ConfigurationResourceCustomization();

        Set<ConfigurationResourceCustomization> configResourceCustomizationSet = new HashSet<>();

        configCustomizationResource
                .setModelCustomizationUUID(metadata.getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID));
        configCustomizationResource.setModelInstanceName(configEntity.getName());

        configCustomizationResource.setFunction(getLeafPropertyValue(configEntity, "function"));
        configCustomizationResource.setRole(getLeafPropertyValue(configEntity, "role"));
        configCustomizationResource.setType(getLeafPropertyValue(configEntity, "type"));

        configCustomizationResource.setServiceProxyResourceCustomization(spResourceCustomization);

        configCustomizationResource.setConfigurationResource(configResource);
        configCustomizationResource.setService(service);
        configResourceCustomizationSet.add(configCustomizationResource);

        configResource.setConfigurationResourceCustomization(configResourceCustomizationSet);

        return configCustomizationResource;
    }

}