public static void menu()
    {
        while(true)
        {
            print("**********************\n");
            print("*      SPN Demo      *\n");
            print("**********************\n");
            print("* 1 - Create         *\n");
            print("* 2 - List           *\n");
            print("* 3 - Verify         *\n");
            print("* 4 - Start          *\n");
            print("* 5 - Stop           *\n");
            print("* 6 - Decommission   *\n");
            print("* 0 - Exit the demo  *\n");
            print("**********************\n");
            print("Please choose your operation:\n");
            
            switch(Integer.valueOf(read()))
            {
            case 0:
                bye();
                return;
            case 1:
                create();
                break;
            case 2:
                list();
                break;
            case 3:
                verify();
                break;
            case 4:
                start();
                break;
            case 5:
                stop();
                break;
            case 6:
                decommission();
                break;
            default:
                print("Wrong choice!\n");
                break;
            }
        }
    }