uiRequest.setLocale(request.getLocale());
uiRequest.setBean(beanName.replace("_BEAN_.", ""));
uiRequest.setParameters(parameters);
uiRequest.setUserEnvironment(request.getUserEnvironment());
BeanResponse uiResponse = new BeanResponse();
BeanAction.execute(uiRequest, uiResponse);
if (! UIController.DEFAULT_FORWARD.equals(uiResponse.getForward()))
{
response.setForward(uiResponse.getForward());
}
for (Map.Entry<String, ResponseElement> re : uiResponse.getElements().entrySet())
{
response.add(re.getValue());
}
for (Map.Entry<String, String> error : uiResponse.getErrors().entrySet())
{
response.addError(error.getKey(), error.getValue());
}
}
catch (AuthorizationException x)