responses.add(getGson().toJson(response));
}
return responses;
}
catch (ExecutionException e) {
UnexpectedException ex = UnexpectedException.forExecutionExceptionShouldNotHappenBecauseProcessorHandlesExceptionsAsServerErrorResponses(e);
logger.error( ex.getMessage(), ex );
throw ex;
}
}