webApp.setDefaultsDescriptor("webdefault-nojsp.xml");
// Fixes serving static resources correctly. Without this, no charset is set in the Content-Type header and
// 'good' browsers do a terrible job at guessing. Does not affect Java resources, which must specify
// their own @Produces (usually by extending BaseJsonResource).
webApp.addFilter(new StaticResourceUTF8CharEncodingFilterHolder(), "/*", EnumSet.allOf(DispatcherType.class));
////////////////////
// Prepare jersey