HttpServletResponse response,
DispatchConfig dispatch
) throws IOException, ServletException {
String path = null;
if (dispatch.getAction() != null) {
ModuleContext module = context;
if (dispatch.getModule() != null) { // switch module
module = support.getModuleContext(dispatch.getModule());
if (module == null) {
throw new ServletException("Unknown module in '" + dispatch.toInlineString() + "'");
}
}
path = module.getPath(dispatch.getAction());
} else /* if (dispatch.getPath() != null) */ {
path = dispatch.getPath();
}
path = addParams(path, dispatch, "UTF-8");
dispatch(request, response, path, dispatch.isRedirect());