package com.smorales.javalab.middleware.config;

import com.smorales.javalab.middleware.workspaceprocessor.boundary.rest.WorkspaceProcessorResource;

import javax.ws.rs.core.Application;
import java.util.Set;

@javax.ws.rs.ApplicationPath("rest")
public class JAXRSConfiguration extends Application {

    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new java.util.HashSet<>();
        addRestResourceClasses(resources);
        return resources;
    }

    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(WorkspaceProcessorResource.class);
        resources.add(CORSFilter.class);
    }
}

@@ -53,101 +53,36 @@
 ort 
-com.smorales.javalab.middleware.workspaceprocessor.boundary.rest.WorkspaceProcessorResource;%0A
+javax.ws.rs.ApplicationPath;
 %0Aimp
@@ -119,44 +119,10 @@
 on;%0A
-import java.util.Set;%0A%0A@javax.ws.rs.
+%0A@
 Appl
@@ -200,368 +200,6 @@
  %7B%0A%0A
-    @Override%0A    public Set%3CClass%3C?%3E%3E getClasses() %7B%0A        Set%3CClass%3C?%3E%3E resources = new java.util.HashSet%3C%3E();%0A        addRestResourceClasses(resources);%0A        return resources;%0A    %7D%0A%0A    private void addRestResourceClasses(Set%3CClass%3C?%3E%3E resources) %7B%0A        resources.add(WorkspaceProcessorResource.class);%0A        resources.add(CORSFilter.class);%0A    %7D%0A
 %7D%0A

simplified jaxrs