throw new TransformException(ex);
}
return null;
}else if(data instanceof JAXBData){
JAXBData jd =(JAXBData)data;
NamespaceContextEx nc = jd.getNamespaceContext();
Iterator<NamespaceContextEx.Binding> itr = nc.iterator();
while(itr.hasNext()){
final NamespaceContextEx.Binding nd = itr.next();
try {
_canonicalizer.writeNamespace(nd.getPrefix(),nd.getNamespaceURI());
} catch (XMLStreamException ex) {
logger.log(Level.SEVERE, LogStringsMessages.WSS_1759_TRANSFORM_ERROR(ex.getMessage()),ex);
throw new TransformException(ex);
}
}
try {
ExcC14NParameterSpec spec = (ExcC14NParameterSpec)_transformParameterSpec;
if(spec != null){
_canonicalizer.setInclusivePrefixList(spec.getPrefixList());
}
jd.writeTo(_canonicalizer);
_canonicalizer.flush();
} catch ( XMLStreamException ex ) {
logger.log(Level.SEVERE, LogStringsMessages.WSS_1759_TRANSFORM_ERROR(ex.getMessage()),ex);
throw new TransformException(ex);
}catch (XWSSecurityException ex) {