encrBuilder.setSymmetricEncAlgorithm(WSConstants.AES_128);
encrBuilder.setExternalKey(ek, tokenIdentifier);
Document encryptedDoc = encrBuilder.build(doc, crypto, secHeader);
encrKeyBuilder.prependToHeader(secHeader);
encrKeyBuilder.prependBSTElementToHeader(secHeader);
Message encryptedMsg = (Message) SOAPUtil.toSOAPMessage(encryptedDoc);
if (log.isDebugEnabled()) {
log.debug("Encrypted message: 3DES + DerivedKeys");
XMLUtils.PrettyElementToWriter(encryptedMsg.getSOAPEnvelope()