comment = gbean.getComment();
// attributes
for (Object o : gbean.getAttributeOrReference()) {
if (o instanceof AttributeType) {
AttributeType attr = (AttributeType) o;
String propertyEditor = attr.getPropertyEditor();
if (null != propertyEditor) {
propertyEditors.put(attr.getName(), propertyEditor);
}
if (attr.isNull()) {
getNullAttributes().add(attr.getName());
} else {
String value;
try {
value = AttributesXmlUtil.extractAttributeValue(attr);
} catch (JAXBException e) {
throw new InvalidGBeanException("Could not extract attribute value from gbean override", e);
} catch (XMLStreamException e) {
throw new InvalidGBeanException("Could not extract attribute value from gbean override", e);
}
if (value == null || value.length() == 0) {
setClearAttribute(attr.getName());
} else {
String truevalue = (String) EncryptionManager.decrypt(value);
getAttributes().put(attr.getName(), truevalue);
}
}
} else if (o instanceof ReferenceType) {
ReferenceType ref = (ReferenceType) o;
if (ref.getPattern().isEmpty()) {