protected void handleAsynchronResponseState(PendingResponse response) {
if (response!=null) {
if (response.isDone()) {
try {
ResponseWriter responseWriter=response.getMessageEvent().getResponseWriter();
DistributedExecutionResult executionResult=response.getDistributedExecutionResult();
Object returnValue=executionResult.getReturnValue();
if (returnValue!=null) {
responseWriter.write(returnValue);
}
} catch (InterruptedException e) {
log.error(e.getMessage(),e);