StAXEXC14nCanonicalizerImpl _canonicalizer = null;
if(algSpec != null || content.size() >0){
Object ob = content.get(0);
if(ob instanceof JAXBElement){
JAXBElement el = (JAXBElement)ob;
TransformationParametersType tp = (TransformationParametersType) el.getValue();
CanonicalizationMethod cm = (CanonicalizationMethod) tp.getAny().get(0);
String algo = cm.getAlgorithm();
if(javax.xml.crypto.dsig.CanonicalizationMethod.EXCLUSIVE.equals(algo)){
_canonicalizer = new StAXEXC14nCanonicalizerImpl();
if (!logger.isLoggable(Level.FINEST)){
_canonicalizer.setStream(outputStream);