}
if (element instanceof IBean) {
appendBeanLabel((IBean) element, buf);
}
else if (element instanceof IProfileAwareBeansComponent) {
IProfileAwareBeansComponent component = (IProfileAwareBeansComponent) element;
buf.append(element.getElementName());
if (component.getProfiles() != null && component.getProfiles().size() > 0) {
buf.append(" profiles=\"").append(StringUtils.collectionToDelimitedString(component.getProfiles(), ", ")).append("\"");
}
}
else if (element instanceof ISourceModelElement) {
BeansModelLabels.appendElementLabel(element, buf);
}