root.addServlet(new ServletHolder(new AbderaServlet() {
@Override
protected Provider createProvider() {
DefaultProvider provider = new DefaultProvider("/");
provider.addRequestProcessors(new HashMap<TargetType, RequestProcessor>() {
{put(TargetType.TYPE_SERVICE,new MultipartRelatedServiceRequestProcessor());}
});
MultipartRelatedAdapter ca = new MultipartRelatedAdapter();
ca.setHref("media");