private static Object[] parseTask(StringTokenizer str) {
        String taskName = str.nextToken();
        Object[] task = null;

        if (taskName.equals("get")) {
            task = new Object[2];
            task[0] = new Integer(0);
            task[1] = str.nextToken();
        } else if (taskName.equals("replicate")) {
            task = new Object[3];
            task[0] = new Integer(1);
            task[1] = str.nextToken();
            task[2] = str.nextToken();
        } else if (taskName.equals("attribute")) {
            task = new Object[2];
            task[0] = new Integer(3);
            task[1] = str.nextToken();
        } else if (taskName.equals("delete")) {
            task = new Object[3];
            task[0] = new Integer(2);
            task[1] = str.nextToken();
            task[2] = str.nextToken();
        }

        return task;
    }