private static String executeGetCommand(DataBaseManager dbManager, Command command) {
        List<String> args = command.getArgs();
        String tableName = args.get(0);
        String key = args.get(1);

        String msg = "";
        try {
            if ("*".equals(key)) {
                Map<String, Row> result = dbManager.getAll(tableName);
                msg = getResultSetAsStr(result);
            } else {
                List<String> result = dbManager.get(tableName, key);
                msg = getResultSetAsStr(result);
            }
        } catch (DataBaseTableException e) {
            msg = e.getMessage();
        } catch (DBUnavailabilityException e) {
            msg = e.getMessage();
        } catch (DataBaseRequestException e) {
            msg = e.getMessage();
        }
        return msg;
    }