@ SuppressWarnings ( "unchecked" ) public static < T > T newInstance ( String name , Class < ? > objectType ) { return ( T ) Proxy . newProxyInstance ( ClassLoaderUtils . getClassLoader ( ) , new Class [ ] { objectType } , new LazyJndiResolver ( name ) ) ; }
Creates a new Proxy instance