code: @Override
      public boolean configure(final FeatureContext context) {
          Configuration configuration = context.getConfiguration();
  
          init(configuration);
  
          String path = (String) configuration.getProperty("datasource.resource.path");
  
          if (StringUtils.isNotBlank(path)) {
              dsPath = path.startsWith("/") ? path : "/" + path;
          }
  
          context.register(WebStatFilter.class);
  
          if (StringUtils.isNotBlank(username)) {
              authorizeToken = UUID.randomUUID().toString().toUpperCase();
  
              context.register(AuthorizationRequestFilter.class);
          }
  
          context.register(new ModelProcessor() {
              @Override
              public ResourceModel processResourceModel(ResourceModel resourceModel, final Configuration configuration) {
                  ResourceModel.Builder resourceModelBuilder = new ResourceModel.Builder(resourceModel, false);
                  Resource.Builder resourceBuilder = Resource.builder(DsStatViewResource.class);
                  resourceBuilder.path(dsPath);
                  Resource resource = resourceBuilder.build();
                  resourceModelBuilder.addResource(resource);
                  return resourceModelBuilder.build();
              }
  
              @Override
              public ResourceModel processSubResource(ResourceModel subResourceModel, Configuration configuration) {
                  return subResourceModel;
              }
          });
  
          return true;
      }
docs: {@inheritDoc}