code: public String toJavaIdentifier(final String text, final boolean uppercaseFirst) {
      return GrammarAccessUtil.toJavaIdentifier(text, Boolean.valueOf(uppercaseFirst));
    }
docs: Converts an arbitary string to a valid Java identifier.
  The string is split up along the the characters that are not valid as Java
  identifier. The first character of each segments is made upper case which
  leads to a camel-case style.
  @param text the string
  @param uppercaseFirst whether the first character of the returned identifier should be uppercase or lowercase
  @return the java identifier