public static String normalize(String s, String reservedSuffix) {
        if (isKeyword(s)) {
            return s + reservedSuffix;
        } else {
            StringBuilder sb = new StringBuilder(s.length() + 1);
            for (char c : s.toCharArray()) {
                if (!Character.isJavaIdentifierPart(c)) {
                    sb.append("_");
                } else if (sb.length() == 0 && !Character.isJavaIdentifierStart(c)) {
                    sb.append("_").append(c);
                } else {
                    sb.append(c);
                }
            }
            return sb.toString();
        }
    }
{@code Naming} provides name normalization functionality

@author tiwe
querydsl-sql-codegen/src/main/java/com/querydsl/sql/codegen/Naming.java