/**
* Action that dispatches to a factory component.
*/
public CommandResponse panelActionFactory(final Panel panel, CommandRequest request) throws Exception {
BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
CommandResponse factoryResponse = requestHandler.handleRequest(request);
String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
if (action != null) {
BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
if (handler != null) action = handler.getActionForShortcut(action);