BrooklynComponentTemplateResolver entityResolver = BrooklynComponentTemplateResolver.Factory.newInstance(loader, childAttrs);
EntitySpec<? extends Entity> childSpec = entityResolver.resolveSpec(encounteredRegisteredTypeIds);
spec.child(EntityManagementUtils.unwrapEntity(childSpec));
}
}
<BUG>if (source!=null)

spec.tag(BrooklynTags.newYamlSpecTag(source));
if (!Strings.isBlank(name))</BUG>
spec.displayName(name);

BrooklynComponentTemplateResolver entityResolver = BrooklynComponentTemplateResolver.Factory.newInstance(loader, childAttrs);
EntitySpec<? extends Entity> childSpec = entityResolver.resolveSpec(encounteredRegisteredTypeIds);
spec.child(EntityManagementUtils.unwrapEntity(childSpec));
}
}
if (source!=null) {
spec.tag(BrooklynTags.newYamlSpecTag(source));
}
if (!Strings.isBlank(name))
spec.displayName(name);
