if(_exc14nTransform == null){
_exc14nTransform = new Exc14nCanonicalizer();
}
return _exc14nTransform.transform(data,xMLCryptoContext);
}else if(getAlgorithm().equals(Transform.ENVELOPED)){
return new StAXEnvelopedTransformWriter(data);
}else if(getAlgorithm().equals(MessageConstants.STR_TRANSFORM_URI)){
return new StAXSTRTransformWriter(data,xMLCryptoContext,refId);
}
throw new UnsupportedOperationException("Algorithm Transform "+ getAlgorithm() +" not supported yet");
}