while (!isEmptyList()) {
current = next();
elementName = current.getQName().toString();
if (this.msgProp.contains(elementName)) {
if (elementName.equals((String) msgProp.getProperties(EncryptedPartsPropertyFactory.K_Body))) {
ElementReader bodyReader = new ElementReader(current);
String elName;
while (bodyReader.next()) {
elName = bodyReader.getCurrentElementName();
if (elName.equals((String) msgProp.getProperties(EncryptedPartsPropertyFactory.K_EncData))) {
this.hasEncryptedParts = true;
this.isBehaviorCompleted = true;
if (log.isDebugEnabled()) {
log.debug("Has Encrypted parts in Body");