addItem( c, mycollection, sourceDir, dircontents[ i ], mapOut );
addItem( c, mycollection, sourceDir, dircontents[ i ], null, mapOut );
    private void addItems( Context c, Collection mycollection, String sourceDir, String mapFile )        throws Exception    {        System.out.println( "Adding items from directory: " + sourceDir );        System.out.println( "Generating mapfile: "          + mapFile   );                // create the mapfile        File outFile = new File( mapFile );        PrintWriter mapOut = new PrintWriter( new FileWriter( outFile ) );                // now process the source directory        String [] dircontents = new java.io.File( sourceDir ).list();        for( int i = 0; i < dircontents.length; i++ )        {            addItem( c, mycollection, sourceDir, dircontents[ i ], mapOut );            System.out.println( i + " " + dircontents[ i ] );        }                mapOut.close();    }