public void setMoodleNoteField(String nodeName,String content) {
    if (nodeName.equals("clientnoteid"))
      if (!content.isEmpty() && content!=null)
        setClientNoteId(content);
    if (nodeName.equals("noteid")) setNoteId(Integer.parseInt(content));
    if (getNoteId()==-1)
      if (nodeName.equals("errorMessage")) setErrorMessage(content);
  }