private List<Transform> createTransforms(){
  XMLSignatureFactory factory=XMLSignatureFactory.getInstance();
  List<Transform> transforms=new ArrayList<Transform>(2);
  List<String> prefixList=new ArrayList<String>(2);
  prefixList.add(XMLConstants.XSD_PREFIX);
  prefixList.add(XMLConstants.XSI_PREFIX);
  try {
    transforms.add(factory.newTransform(CanonicalizationMethod.ENVELOPED,(TransformParameterSpec)null));
    transforms.add(factory.newTransform(CanonicalizationMethod.EXCLUSIVE,new ExcC14NParameterSpec(prefixList)));
  }
 catch (  Exception e) {
    throw new IllegalStateException("Cannot create enveloped or exclusive transform objects.",e);
  }
  log.debug("Created transforms: {} and {}",CanonicalizationMethod.ENVELOPED,CanonicalizationMethod.EXCLUSIVE);
  return transforms;
}

private List < Transform > createTransforms ( ) { XMLSignatureFactory factory = XMLSignatureFactory . getInstance ( ) ; List < Transform > transforms = new ArrayList < Transform > ( 2 ) ; List < String > prefixList = new ArrayList < String > ( 2 ) ; prefixList . add ( XMLConstants . XSD_PREFIX ) ; prefixList . add ( XMLConstants . XSI_PREFIX ) ; try { transforms . add ( factory . newTransform ( CanonicalizationMethod . ENVELOPED , ( TransformParameterSpec ) null ) ) ; transforms . add ( factory . newTransform ( CanonicalizationMethod . EXCLUSIVE , new ExcC14NParameterSpec ( prefixList ) ) ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Cannot create enveloped or exclusive transform objects." , e ) ; } log . debug ( "Created transforms: {} and {}" , CanonicalizationMethod . ENVELOPED , CanonicalizationMethod . EXCLUSIVE ) ; return transforms ; }
creates a list of transform part of reference section in signature
