static String toCamelCase(String name) {
    if (name == null || name.isEmpty()) {
      return name;
    }
    int offset1 = Character.offsetByCodePoints(name, 0, 1);
    if (offset1 < name.length() && Character.isUpperCase(name.codePointAt(offset1))) {
      return name;
    }
    return name.substring(0, offset1).toLowerCase() + name.substring(offset1);
  }
Utility method to take a string and convert it to normal Java variable name capitalization.

@param name The string to be made in camel case.

@return The camel case version of the string.
geode-core/src/main/java/org/apache/geode/management/internal/OpenTypeUtil.java