public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {
XMLConversionManager xmlConversionManager = (XMLConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager();
Object objectValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, xmlConversionManager, unmarshalRecord);
// PUT VALUE INTO A RECORD KEYED ON XMLFIELD
if (null == unmarshalRecord.getTransformationRecord()) {
unmarshalRecord.setTransformationRecord(new XMLTransformationRecord("ROOT", unmarshalRecord));
}
unmarshalRecord.getTransformationRecord().put(xmlField, objectValue);
}