public void setMoodleGroupField(String nodeName, String content) {
        if (nodeName.equals("id")) setId(Long.parseLong(content.trim()));
        if (nodeName.equals("name")) setName(content);
        if (nodeName.equals("courseid")) setCourseId(Long.parseLong(content.trim()));
        if (nodeName.equals("description")) setDescription(content);
        if (nodeName.equals("enrolmentkey")) setEnrolmentKey(content);
    }