private void processByGeneratorModel(boolean isDelete, Generator g, GeneratorModel m)
     throws Exception, FileNotFoundException {
   try {
     if (isDelete) g.deleteBy(m.templateModel, m.filePathModel);
     else g.generateBy(m.templateModel, m.filePathModel);
   } catch (GeneratorException ge) {
     PrintUtils.printExceptionsSumary(
         ge.getMessage(), getGenerator().getOutRootDir(), ge.getExceptions());
     throw ge;
   }
 }
 public void processByTable(Generator g, Table table, boolean isDelete) throws Exception {
   GeneratorModel m = GeneratorModelUtils.newGeneratorModel("table", table);
   PrintUtils.printBeginProcess(table.getSqlName() + " => " + table.getClassName(), isDelete);
   if (isDelete) g.deleteBy(m.templateModel, m.filePathModel);
   else g.generateBy(m.templateModel, m.filePathModel);
 }