try {
if (database != null)
((ODistributedStorage) database.getStorage()).setLastOperationId(req.getId());
final Serializable result = (Serializable) task.execute(serverInstance, this, database);
if (result instanceof Throwable)
ODistributedServerLog.error(this, getLocalNodeName(), req.getSenderNodeName(), DIRECTION.IN,
"error on executing request %d (%s) on local node: ", (Throwable) result, req.getId(), req != null ? req.getTask()
: "-");