code: @SuppressWarnings("unchecked")
      public ImmutableSet<Object> getJerseyComponents() {
          Set<Object> components = getSetSafely(Keys.JerseyComponents);
  
          ImmutableSet.Builder<Object> builder = ImmutableSet.builder();
  
          for (Object classOrInstance : components) {
              if (classOrInstance instanceof Class) {
                  Object instance = injector.getInstance((Class<Object>) classOrInstance);
                  builder.add(instance);
  
              } else {
                  builder.add(classOrInstance);
              }
          }
  
          return builder.build();
      }
docs: Returns a Set of Jersey components, including Providers and Resources. These objects are usually fed into the
  {@link io.dropwizard.jersey.setup.JerseyEnvironment#register(Class)} method.
  
  @return An immutable set of Jersey components.