logger.debug("IN");
EMFErrorHandler errorHandler = responseContainer.getErrorHandler();
// gets the module response
SourceBean moduleResponse = (SourceBean)responseContainer.getServiceResponse().getAttribute("DetailDistributionListModule");
// if the module response is null throws an error and returns the name of the error publisher
if(moduleResponse==null) {
logger.error("Module response null");
EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 100 );
errorHandler.addError(error);
return "error";
}
// if there are errors and they are only validation errors return the name for the detail publisher
if(!errorHandler.isOK()) {
if(GeneralUtilities.isErrorHandlerContainingOnlyValidationError(errorHandler)) {
logger.info("Publish: detailDistributionList" );
return "detailDistributionList";
}
}
// if there are some errors into the errorHandler (not validation errors), return the name for the errors publisher
if(!errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
return new String("error");
}
Object loop = moduleResponse.getAttribute("loopback");
if (loop != null) {
logger.info("Publish: detailDistributionListLoop" );
logger.debug("OUT");
return "detailDistributionListLoop";
} else {