docs: public static DefaultResourceConfig newApplicationConfig(UIContext context)
      {
          final Set<Object> singletons = getSingletons(context);
          final Set<Class<?>> classes = getClasses();
  
          return new DefaultResourceConfig()
          {
              @Override
              public Set<Class<?>> getClasses()
              {
                  return classes;
              }
  
              @Override
              public Set<Object> getSingletons()
              {
                  return singletons;
              }
          };
      }