plugin.setRequest(request);
pluginlogger = LoggerFactory.getLogger(plugin.getClass());
result = plugin.execute(request);
} catch (Exception e) {
IErrorResult errorResult = getDefaultErrorResult();
if (errorResult == null) {
result = new ErrorResult(request, e);
} else {
errorResult.putError(request, e);
result = errorResult;
}
if (e instanceof CapMessageException) {
pluginlogger.error(result.getResult().toString());
} else if (e instanceof CapException && e.getCause() != null) {