return (T) new SAXSource(new InputSource(getBinaryStream()));
} else if (sourceClass == DOMSource.class) {
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder docBuilder = dbf.newDocumentBuilder();
Node doc = docBuilder.parse(new InputSource(getBinaryStream()));
return (T) new DOMSource(doc);
} catch (ParserConfigurationException e) {
throw new SQLException(e);
} catch (SAXException e) {