code: public static HttpServer startServer(URI uri, AmazonSNSTransport t) throws IOException {
      
      ResourceConfig resourceConfig = new ResourceConfig();
      resourceConfig.registerInstances(new SNSListenerResource(t));
      resourceConfig.setApplicationName("Argo AmazonSNSTransport");
      
      
  //    ResourceConfig resourceConfig = new ResourceConfig().packages("ws.argo.responder.transport.sns");
  
      LOGGER.debug("Starting Jersey-Grizzly2 JAX-RS listener...");
      HttpServer httpServer =  GrizzlyHttpServerFactory.createHttpServer(uri, resourceConfig, false);
      httpServer.getServerConfiguration().setName("SNS Listener");
      httpServer.start();
      LOGGER.info("Started Jersey-Grizzly2 JAX-RS listener.");
  
      return httpServer;
  
    }
docs: Start the ResponseListener client. This largely includes starting at
  Grizzly 2 server.
  
  @param uri the uri of the service
  @param t the link to the transport associated with this listener
  @return a new HttpServer
  @throws IOException if something goes wrong creating the http server