try {
respSubMsg = generateResponseSubMessage(submgs.getSignerCert());
Iterator<ISubMessage> iter = submgs.getSubMessages().iterator();
boolean somethingprocessed = false;
while(iter.hasNext()){
ISubMessage reqMsg = iter.next();
if (!checkWhiteList(reqMsg)) {
errormessage = "Sub message of type " + reqMsg.getClass().getName() + " is not listed in white list. Message id: " + msg.getMessageid();
}
ISubMessage respMsg = MessageProcessor.processSubMessage(getAdmin(submgs), reqMsg, errormessage, ejbs);
if (respMsg != null) {
// if the response message is null here, we will ignore this message,
// it means that we should not do anything with it this round
respSubMsg.addSubMessage(respMsg);
somethingprocessed = true;