Replacing ResourceConfig with ServletContext