public static OutputStream request(Object stub, String operation, boolean responseExpected) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).request(operation, responseExpected); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._request(operation, responseExpected); else throw wrapper.requestRequiresStub(); } }
public static OutputStream request(Object stub, String operation, boolean responseExpected) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).request(operation, responseExpected); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._request(operation, responseExpected); else throw wrapper.requestRequiresStub(); } }