} else {
return unmarshal(streamSource.getSystemId());
}
} else {
XMLUnmarshallerHandler handler = this.xmlUnmarshaller.getUnmarshallerHandler();
XMLTransformer transformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
SAXResult result = new SAXResult(handler);
transformer.transform(source, result);
return handler.getResult();
}
}finally {
xmlUnmarshaller.getStringBuffer().reset();
}