core/src/main/java/com/orientechnologies/common/parser/OBaseParser.java
protected String parserOptionalWord(final boolean iUpperCase) {
    parserPreviousPos = parserCurrentPos;

    parserNextWord(iUpperCase);
    if (parserLastWord.length() == 0)
      return null;
    return parserLastWord.toString();
  }
protected String parserOptionalWord(final boolean iUpperCase) {
    parserPreviousPos = parserCurrentPos;

    parserNextWord(iUpperCase);
    if (parserLastWord.length() == 0)
      return null;
    return parserLastWord.toString();
  }
Parses the next word. It returns the word parsed if any.

@param iUpperCase
True if must return UPPERCASE, otherwise false
@return The word parsed if any, otherwise null