code: public ResourceHandler build() {
          if (resourceProviderFactory == null) {
              throw new IllegalStateException("No resourceProviderFactory has been set");
          }
          return new ResourceHandler(resourceProviderFactory, pathToServeFrom, defaultFile, extensionToResourceType);
      }
docs: Creates the handler
  @return The built handler