}
// prepare command and run
AbstractCommand command = prepareCommand((String) requestParams.get("cmd"), request, response, config);
try {
command.execute();
} catch (ConnectorException e) {
logger.warn("command returned an error", e);
putResponse("error", e.getMessage());
}