@Override
protected Object _getInstance(HttpContext hc) {
try {
return ipcp.proxy(rcc.construct(hc));
} catch (InstantiationException ex) {
throw new ContainerException("Unable to create resource", ex);
} catch (IllegalAccessException ex) {
throw new ContainerException("Unable to create resource", ex);
} catch (InvocationTargetException ex) {
// Propagate the target exception so it may be mapped to a response
throw new MappableContainerException(ex.getTargetException());
} catch (WebApplicationException ex) {
throw ex;
} catch (RuntimeException ex) {
throw new ContainerException("Unable to create resource", ex);
}
}