code: @SuppressWarnings("unchecked")
      public static <T extends Annotation> T createAnnotation(final Class<T> clazz) {
          return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class[]{clazz, Annotation.class}, new SimpleAnnoInvocationHandler(clazz));
      }
docs: Create an annotation instance from annotation class.
  
  @param clazz
  the annotation class
  @param <T>
  the generic type of the annoation
  @return
  the annotation instance