/** * Normalize key. * @param key The key to normalize * @return Normalized key */ public static String normalize(final String key) { final char[] chars = key.toCharArray(); chars[0] = ImmutableHeader.upper(chars[0]); for (int pos = 1; pos < chars.length; ++pos) { if (chars[pos - 1] == '-') { chars[pos] = ImmutableHeader.upper(chars[pos]); } } return new String(chars); }