* Creates the JaxRs application from the repository.
*
* @return the application, not null
*/
protected Application createApplication() {
ComponentRepository repo = ComponentRepository.getFromServletContext(getServletContext());
final Set<Object> singletons = repo.getRestComponents().buildJaxRsSingletons();
final Set<Class<?>> classes = repo.getRestComponents().buildJaxRsClasses();
Application app = new Application() {
@Override
public Set<Class<?>> getClasses() {
return classes;
}