// Helpers: execute
// /////////////////////////////////////////////////////////////////
private void execute(final Request request) {
synchronized (connection) {
final ResponseEnvelope response = connection.executeRemotely(request);
if (request.getId() != response.getId()) {
throw new IsisRemoteException("Response out of sequence with respect to the request: "
+ request.getId() + " & " + response.getId() + " respectively");
}
if (LOG.isDebugEnabled()) {
LOG.debug("response " + response);
}
request.setResponse(response.getObject());
}
}