* @return
*/
public boolean marshalSelfAttributes(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, XMLMarshaller marshaller) {
Object objectValue = xmlCompositeObjectMapping.getAttributeValueFromObject(object);
if (xmlCompositeObjectMapping.getConverter() != null) {
Converter converter = xmlCompositeObjectMapping.getConverter();
if (converter instanceof XMLConverter) {
objectValue = ((XMLConverter)converter).convertObjectValueToDataValue(objectValue, session, marshaller);
} else {
objectValue = converter.convertObjectValueToDataValue(objectValue, session);
}
}
XMLDescriptor descriptor = (XMLDescriptor)session.getDescriptor(objectValue);
if(descriptor != null){
TreeObjectBuilder objectBuilder = (TreeObjectBuilder)descriptor.getObjectBuilder();