* @param requestFactory the RequestFactory type
* @return an instance of the RequestFactory type
* @see InProcessRequestTransport
*/
public static <T extends RequestFactory> T create(Class<T> requestFactory) {
RequestFactoryHandler handler = new InProcessRequestFactory().new RequestFactoryHandler();
return requestFactory.cast(Proxy.newProxyInstance(
Thread.currentThread().getContextClassLoader(),
new Class<?>[] {requestFactory}, handler));
}