question: public boolean scanAndGenerate ( ) throws InterruptedException , ReplicatorException , SQLException , IOException { Writer writer = null ; try { scanner . parseTemplate ( templateFile ) ; } catch ( ReplicatorException e ) { println ( e . getMessage ( ) ) ; return false ; } if ( renameDefinitions != null ) { try { scanner . parseRenameDefinitions ( renameDefinitions ) ; } catch ( IOException e ) { println ( e . getMessage ( ) ) ; return false ; } } if ( tableFile != null ) tables = tableFileToRegex ( tableFile ) ; if ( outFile == null ) writer = new StringWriter ( ) ; else writer = new BufferedWriter ( new FileWriter ( new File ( outFile ) ) ) ; if ( tables != null && outFile != null ) println ( "tables = " + tables ) ; scanner . scan ( tables , templateOptions , writer ) ; writer . flush ( ) ; writer . close ( ) ; if ( outFile == null ) println ( writer . toString ( ) ) ; else println ( "rendered to = " + outFile ) ; return true ; }
target:  Scans the database for requested objects and generates output through a template.