Here you can find the source of sanitizeID(String name)
public static String sanitizeID(String name)
//package com.java2s; //License from project: Apache License public class Main { public static String sanitizeID(String name) { name = name.replaceAll("[^a-zA-Z0-9_\\-\\.]", "_"); if (name.matches("([0-9]|\\.|\\-).*")) name = "a" + name; return name; }/*from www . j a v a2 s. c o m*/ }