protected void init(final RepresentationType representationType) {
if (!IsisContext.inSession() || getAuthenticationSession() == null) {
throw JsonApplicationException.create(HttpStatusCode.UNAUTHORIZED);
}
this.resourceContext = new ResourceContext(representationType, httpHeaders, uriInfo, request, httpServletRequest, httpServletResponse, securityContext, getOidStringifier(), getLocalization(), getAuthenticationSession(), getPersistenceSession(), getAdapterManager(), getSpecificationLoader());
}