throw new WebApplicationException(Response.Status.NOT_FOUND);
}
}
protected ProviderFactory setupFactory(Endpoint ep) {
ProviderFactory factory = ProviderFactory.getInstance();
if (entityProviders != null) {
factory.setUserProviders(entityProviders);
}
setDataBindingProvider(factory, ep.getService());
factory.setBus(getBus());
if (schemaLocations != null) {
factory.setSchemaLocations(schemaLocations);
}
factory.initProviders(serviceFactory.getRealClassResourceInfo());
ep.put(ProviderFactory.class.getName(), factory);
return factory;
}