int event = reader.next();
if (event == XMLStreamConstants.START_ELEMENT && reader.getLocalName().equals(XOP_LOCALNAME) && reader.getNamespaceURI().equals(XOP_NAMESPACEURI)) {
//its xop reference, take the URI reference
String href = reader.getAttributeValue(null, "href");
try {
Attachment att = getAttachment(href);
if(att != null){
base64AttData = new Base64Data();
base64AttData.set(att.asDataHandler());
}
xopReferencePresent = true;
} catch (IOException e) {
throw new WebServiceException(e);
}