new DemoServer().start(port);
}
public boolean start(int port) {
// Set up a ServletHolder for the Jersey dispatch logic
ServletHolder holder = new ServletHolder(new ServletContainer());
// Set the name of the Application class that the configuration is derived from
holder.setInitParameter(ServletContainer.APPLICATION_CONFIG_CLASS,
DemoApplication.class.getName());
// Add FlatPackProvider as a container filter to enable SecurityContext integration
holder.setInitParameter(ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS,