throw new ContainerException("Unable to create resource " + rcc.getResourceClass(), ex);
} catch (IllegalAccessException ex) {
throw new ContainerException("Unable to create resource " + rcc.getResourceClass(), 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 " + rcc.getResourceClass(), ex);
}