{
ByteArrayOutputStream data = Tools.readAll( attachment.getInputStream(), 0 );
byte[] byteArray = data.toByteArray();
XmlCursor cursor = include.newCursor();
cursor.toParent();
XmlObject parentXmlObject = cursor.getObject();
cursor.dispose();
SchemaType schemaType = parentXmlObject.schemaType();
Node parentNode = elm.getParentNode();