public String convert(String defaultName) {
      StringBuilder builder = new StringBuilder();
      char[] arr = defaultName.toCharArray();
      for (int i = 0; i < arr.length; ++i) {
        if (Character.isUpperCase(arr[i])) {
          builder.append("-" + Character.toLowerCase(arr[i]));
        } else {
          builder.append(arr[i]);
        }
      }
      return builder.toString();
    }
A Jackson property naming strategy that converts camel case JSON fields to
hyphenated names. For example, myVariableName would be converted to
my-variable-name.
samza-core/src/main/java/org/apache/samza/serializers/model/SamzaObjectMapper.java