code: public static <T> T forInterface(@Nonnull Class<T> clazz, RestEndpoint endpoint) {
          return Reflection.newProxy(clazz, new RestEndpointInvocationHandler(clazz, endpoint));
      }
docs: Creates interface implementation (via proxy) of provided class using RestEndpoint as rest client
  <b>Only interfaces are supported!</b>
  
  @param clazz    - interface to be proxied
  @param endpoint - RestEndpoint to be used as rest client
  @param <T>      - Type of interface to be proxied
  @return interface implementation (e.g.) just proxy