int intParam1 = 10;
int intParam2 = 10;
HeadersHandlerAsyncCallback callback = new HeadersHandlerAsyncCallback();
Future<?> future = proxy.headersHandlerAsync(intParam1, intParam2, callback);
while (!future.isDone()) {
Thread.sleep(1000);
TestLogger.logger.debug("Async invocation incomplete");
}