private static String dotsToRegex(String dotsName){
  String tmp=dotsName.replace("$","\\$");
  return tmp.replace(".",SEP);
}

private static String dotsToRegex ( String dotsName ) { String tmp = dotsName . replace ( "$" , "\\$" ) ; return tmp . replace ( "." , SEP ) ; }
replace the dots in a fully - qualified class / package name to a regular expression fragment that will match file names .
