@ SuppressWarnings ( "unchecked" ) public static < S > S create ( Class < ? super S > interf , Result < S > result ) { return ( S ) Proxy . newProxyInstance ( result . getClass ( ) . getClassLoader ( ) , new Class [ ] { interf } , new ResultProxy <> ( result ) ) ; }
Create a ResultProxy for the given interface .