private void addSignatureProfile(SignatureWrapper signature,XmlSignature xmlSignature){
  SignatureType signatureType=SignatureType.NA;
  String certificateId=signature.getSigningCertificateId();
  if (certificateId != null) {
    signatureType=getSignatureType(certificateId);
  }
  xmlSignature.setSignatureLevel(signatureType.name());
}

private void addSignatureProfile ( SignatureWrapper signature , XmlSignature xmlSignature ) { SignatureType signatureType = SignatureType . NA ; String certificateId = signature . getSigningCertificateId ( ) ; if ( certificateId != null ) { signatureType = getSignatureType ( certificateId ) ; } xmlSignature . setSignatureLevel ( signatureType . name ( ) ) ; }
here we determine the type of the signature .
