code: public String getTextType() {
          if (textType == null) {
              String mimeType = getMimeType();
              String extension = getNameExtension();
              textType = getTextType(mimeType, extension);
          }
          return textType;
      }
docs: Determines the text type for the current node using the mimeType (if present) and the extension.