public static String camelize(String s) {
    StringBuilder sb = new StringBuilder();
    String[] words = split(s.toLowerCase(Locale.US), ESCAPE_CHAR, '_');

    for (String word : words) {
      sb.append(StringUtils.capitalize(word));
    }

    return sb.toString();
  }
Convert SOME_STUFF to SomeStuff

@param s input string
@return camelized string
common/src/java/org/apache/hive/common/util/HiveStringUtils.java