question: public static File storeCatalogFile ( String catalogFileName ) { File folder = null ; String folderName ; int pos = catalogFileName . indexOf ( Constants . FOLDER_SEPARATOR ) ; if ( pos != - 1 ) { folderName = catalogFileName . substring ( 0 , pos ) ; folder = new File ( getGenerateFolder ( ) , folderName ) ; } else { folderName = "" ; folder = new File ( getGenerateFolder ( ) , folderName ) ; } if ( ! folder . exists ( ) ) { folder . mkdirs ( ) ; } mapOfCatalogFolderNames . put ( catalogFileName , folderName ) ; File result = new File ( getGenerateFolder ( ) , catalogFileName ) ; return result ; }
target:  Set up an entry for the given file in the catalog. Checks to see if the file is already present and if not adds it