private static String genClassID(String fileExt,int regLevel){
  boolean isClsIDExist=true;
  String appendix, temClsID, temClsIDKey, temFileExt;
  temFileExt=fileExt.trim();
  if (temFileExt.charAt(0) == '.') {
    temFileExt=temFileExt.substring(1);
  }
  int i=1;
  while ((isClsIDExist) && (i < MAX_CLSID_NUMBER)) {
    appendix=Integer.toString(i);
    temClsID="class" + temFileExt + appendix;
    if (temClsID != null) {
      temClsIDKey=getClsIDKey(temClsID,regLevel);
      if (temClsIDKey != null) {
        isClsIDExist=isSubKeyExist(temClsIDKey,regLevel);
        if (!isClsIDExist) {
          return temClsID;
        }
      }
    }
    i++;
  }
  return null;
}

private static String genClassID ( String fileExt , int regLevel ) { boolean isClsIDExist = true ; String appendix , temClsID , temClsIDKey , temFileExt ; temFileExt = fileExt . trim ( ) ; if ( temFileExt . charAt ( 0 ) == '.' ) { temFileExt = temFileExt . substring ( 1 ) ; } int i = 1 ; while ( ( isClsIDExist ) && ( i < MAX_CLSID_NUMBER ) ) { appendix = Integer . toString ( i ) ; temClsID = "class" + temFileExt + appendix ; if ( temClsID != null ) { temClsIDKey = getClsIDKey ( temClsID , regLevel ) ; if ( temClsIDKey != null ) { isClsIDExist = isSubKeyExist ( temClsIDKey , regLevel ) ; if ( ! isClsIDExist ) { return temClsID ; } } } i ++ ; } return null ; }
constructs a new class id name based on the given fileext name by adding a sequence number at the rear of the given fileext .
