code: public static String toDashedForm(String name, int start) {
  		StringBuilder result = new StringBuilder();
  		String replaced = name.replace('_', '-');
  		for (int i = start; i < replaced.length(); i++) {
  			char ch = replaced.charAt(i);
  			if (Character.isUpperCase(ch) && result.length() > 0
  					&& result.charAt(result.length() - 1) != '-') {
  				result.append('-');
  			}
  			result.append(Character.toLowerCase(ch));
  		}
  		return result.toString();
  	}
docs: Return the specified Java Bean property name in dashed form.
  @param name the source name
  @param start the starting char
  @return the dashed from