code: protected static <A> A _getAnnotation(Class<A> annotationClass, Class endpointClass) {
          return annotationClass.cast(endpointClass.getAnnotation(annotationClass));
      }
docs: <p>_getAnnotation.</p>
  
  @param annotationClass a {@link java.lang.Class} object.
  @param endpointClass   a {@link java.lang.Class} object.
  @param <A>             a A object.
  @return a A object.