public static void main(String[] args) {
        if (args.length != 1) {
            System.out.println("Invalid parameters number");
            System.out.println("Usage:");
            System.out.println("java ru.compscicenter.db.tolmachev.nosqldb.server.httpprotocol.DataBaseHttpServer <database server port>");
            return;
        }

        int dataBaseHttpServerPort = Integer.parseInt(args[0]);
        DataBaseHttpServer dataBaseHttpServer = new DataBaseHttpServer(dataBaseHttpServerPort);

        System.out.println("Starting database server on port " + dataBaseHttpServerPort + "...");

        try {
            dataBaseHttpServer.start();
        } catch (DataBaseServerException e) {
            System.out.println(e.getMessage());
            return;
        }

        System.out.println("Database server started");
        System.out.println("Press 'enter' to stop");

        try {
            System.in.read();
        } catch (IOException e) {
            System.out.println(e.getMessage());
        }

        try {
            dataBaseHttpServer.stop();
        } catch (DataBaseServerException e) {
            System.out.println(e.getMessage());
        }
        System.out.println("Database server stopped");
    }