code: @Override
      public void setup(final Application application) {
  
          final Set<ClassInfo> classInfoSet = Sets.newLinkedHashSet();
          subscribeSystemEvent(ClassFoundEvent.class, event -> event.accept(info -> {
              if (info.containsAnnotations(Service.class)) {
                  classInfoSet.add(info);
                  return true;
              }
              return false;
          }));
  
          final Feature localResource = new Feature() {
  
              @Inject
              private ServiceLocator locator;
  
              @Override
              public boolean configure(FeatureContext context) {
                  for (ClassInfo classInfo : classInfoSet) {
                      ServiceLocatorUtilities.addClasses(locator, classInfo.toClass());
                  }
                  classInfoSet.clear();
                  return true;
              }
          };
  
          application.register(localResource);
      }
docs: {@inheritDoc}