public Object end(final String uri,
final String localName,
final ExtensibleXmlParser parser) throws SAXException {
final Element element = parser.endElementBuilder();
ValueObject valueObject = (ValueObject) parser.getParent();
String text = ((Text)element.getChildNodes().item( 0 )).getWholeText();
if (text != null) {
text.trim();
if ("".equals(text)) {
text = null;
}
}
Object value = restoreValue(text, valueObject.getType(), parser);
valueObject.setValue(value);
return null;
}