code: private <T> Class<? extends Annotation> matchImplementationToScope(Class<?> implementation) {
  
          for (Annotation next : implementation.getAnnotations()) {
              Class<? extends Annotation> nextType = next.annotationType();
              if (nextType.getAnnotation(BindingScope.class) != null) {
                  return nextType;
              }
          }
          return null;
      }
docs: This method assists in matching a given implementation class to its (programmer) defined scope.
  The method searches for an annotation on the class defined as a binding scope. If one is found
  the implementation is matched to the scope. Note that the implementation scope can be overridden
  using bindings.xml configuration
  @param implementation The class to examine
  @return The found scope annotation