}
}
}
}
if(skipAttachments){
int count = secureMessage.countAttachments();
if( count > attachmentTargets.size()){
log.log(Level.SEVERE, "WSS1238.failed.receiverReq.attachments");
throw new XWSSecurityException("Receiver requirement cid:* is not met,only "+
attachmentTargets.size()+" attachments out of "+count+" were encrypted");
}