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