WSSecEncrypt encrypt = new WSSecEncrypt();
encrypt.setUserInfo("16c73ab6-b892-458f-abf5-2f875f74882e", "security");
encrypt.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
List<WSEncryptionPart> parts = new ArrayList<WSEncryptionPart>();
parts.add(new WSEncryptionPart("Body", "http://schemas.xmlsoap.org/soap/envelope/", "Content"));
parts.add(new WSEncryptionPart("cid:Attachments", "Element"));
encrypt.setParts(parts);
String attachmentId = UUID.randomUUID().toString();
final Attachment[] attachment = new Attachment[1];
attachment[0] = new Attachment();