encryptedKey = new WSSecEncryptedKey();
encryptedKey.setUseThisCert(serviceCert);
encryptedKey.setKeySize(256);
encryptedKey.setKeyEncAlgo(WSConstants.KEYTRANSPORT_RSAOEP);
encryptedKey.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
encryptedKey.prepare(doc, null);
encrKeyElem = encryptedKey.getEncryptedKeyElement();
// Create KeyInfo structure - START
keyInfoElem = doc.createElementNS(WSConstants.SIG_NS, "KeyInfo");