class PaaSUtils {

    public static void processRelationshipTemplateProperties(PaaSRelationshipTemplate paaSRelationshipTemplate,
            Map<String, PaaSNodeTemplate> paaSNodeTemplates) {
        RelationshipTemplate template = paaSRelationshipTemplate.getTemplate();
        // inject relationship properties
        injectPropertiesAsInputs(ToscaFunctionConstants.SELF, null, template.getProperties(), paaSRelationshipTemplate.getInterfaces(),
                baseName -> StringUtils.joinWith(AlienUtils.DEFAULT_PREFIX_SEPARATOR, ToscaFunctionConstants.SELF, baseName));

        // inject source properties
        injectSourcePropertiesAsInputs(paaSNodeTemplates.get(paaSRelationshipTemplate.getSource()), paaSRelationshipTemplate.getInterfaces());

        // inject target properties
        injectTargetPropertiesAsInputs(paaSNodeTemplates.get(template.getTarget()), paaSRelationshipTemplate.getInterfaces());

        // inject related target capability properties
        injectTargetedCapabilityProperties(paaSNodeTemplates.get(template.getTarget()), template.getTargetedCapabilityName(),
                paaSRelationshipTemplate.getInterfaces());

    }

}