question: 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 ( ) ) ; }
target:  Here we determine the type of the signature.