package de.seven.fate.rest;

import de.seven.fate.message.resource.MessageResource;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

@ApplicationPath("/rest")
public class RestApplication extends Application {

    private static final Set<Class<?>> classSet = new HashSet<Class<?>>(Arrays.asList(MessageResource.class));

    @Override
    public Set<Class<?>> getClasses() {
        return classSet;
    }
}
@@ -81,423 +81,363 @@
 ce;%0A
-%0A
 import 
-javax.ws.rs.ApplicationPath;%0Aimport javax.ws.rs.core.Application;%0Aimport java.util.Arrays;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0A@ApplicationPath(%22/rest%22)%0Apublic class RestApplication extends Application %7B%0A%0A    private static final Set%3CClass%3C?%3E%3E classSet = new HashSet%3CClass%3C?%3E%3E(Arrays.asList(MessageResource.class));%0A%0A    @Override%0A    public Set%3CClass%3C?%3E%3E getClasses() %7B%0A        return 
+org.glassfish.jersey.server.ResourceConfig;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.ws.rs.ApplicationPath;%0A%0A@Component%0A@ApplicationPath(%22/rest%22)%0Apublic class RestApplication extends ResourceConfig %7B%0A%0A    public RestApplication() %7B%0A        // Packages to be scanned for REST annotations%0A        register(MessageResource.
 class
-Set
+)
 ;%0A  

Add REST (fix test)