private static void fillAbstractInstantiableTemplate(AbstractInstantiableTemplate template, AbstractInstantiableToscaType type,
AbstractInstantiableTemplate templateToMerge, boolean mergeUndefinedProps) {
fillAbstractTemplate(template, type, templateToMerge, mergeUndefinedProps);
template.setArtifacts(Maps.newLinkedHashMap());
fillDeploymentArtifactsMap(template.getArtifacts(), type.getArtifacts(), templateToMerge != null ? templateToMerge.getArtifacts() : null);
template.setAttributes(type.getAttributes());
if (templateToMerge != null && templateToMerge.getInterfaces() != null) {
template.setInterfaces(templateToMerge.getInterfaces());
}
}