sb.append("}");
throw new UnsupportedOperationException(sb.toString());
}
//
Request request = new Request(this, handler, bridge);
//
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
try {
ClassLoader classLoader = application.getClassLoader();
Thread.currentThread().setContextClassLoader(classLoader);
bridge.begin(request);
//
Response result = request.invoke();
//
if (result instanceof Response.Error && descriptor.getErrorController() != null) {
Class<? extends juzu.Handler<Response.Error, Response>> a = descriptor.getErrorController();
Method m;
try {
m = a.getMethod("handle", Response.Error.class);
}
catch (NoSuchMethodException e) {
throw new UndeclaredThrowableException(e);
}
//
ContextualParameter argument = new ContextualParameter("argument", Response.Error.class);
handler = new ControllerHandler<Phase.View>(null, Phase.VIEW, a, m, Collections.<ControlParameter>singletonList(argument));
request = new Request(this, handler, bridge);
request.getContextualArguments().put(argument, result);
result = request.invoke();
}
//
if (result != null) {
try {