code: @Override
      public boolean configure(FeatureContext context) {
  
          Configuration configuration = context.getConfiguration();
          if (!configuration.isRegistered(FaviconResource.class)) {
              context.register(FaviconResource.class);
  
              assetsMap.putAll(getAssetMap(configuration));
  
              context.register(new ModelProcessor() {
                  @Override
                  public ResourceModel processResourceModel(ResourceModel resourceModel, Configuration configuration) {
                      ResourceModel.Builder resourceModelBuilder =
                              new ResourceModel.Builder(resourceModel, false);
  
                      for (String routePath : assetsMap.keySet()) {
                          Resource.Builder resourceBuilder = Resource.builder(AssetsResource.class);
                          if (routePath.equals(ROOT_MAPPING_PATH)) {
                              routePath = "/";
                          }
                          resourceBuilder.path(routePath);
                          Resource resource = resourceBuilder.build();
                          resourceModelBuilder.addResource(resource);
                      }
  
                      return resourceModelBuilder.build();
                  }
  
                  @Override
                  public ResourceModel processSubResource(ResourceModel subResourceModel, Configuration configuration) {
                      return subResourceModel;
                  }
              });
              return true;
          }
          return false;
      }
docs: {@inheritDoc}