* call the correct jsp reference.
*/
public String getPublisherName(RequestContainer requestContainer, ResponseContainer responseContainer) {
EMFErrorHandler errorHandler = responseContainer.getErrorHandler();
// get the module response
SourceBean moduleResponse = (SourceBean)responseContainer.getServiceResponse().getAttribute("DetailFunctionalityModule");
// if the module response is null throws an error and return the name of the errors publisher
if(moduleResponse==null) {
SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
"DetailFunctionalityPublisher",
"getPublisherName",
"Module response null");
EMFUserError error = new EMFUserError(EMFErrorSeverity.ERROR, 10 );
errorHandler.addError(error);
return new String("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)) {
return "detailFunctionality";
}
}
// 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) {