}else{ contents = fileContents[i];
    private static final void createLocalDir(File aNewDir, File[] localFiles, String[] fileContents){        if (!aNewDir.mkdirs()) {            error("failed to create a new directory '" + aNewDir.getAbsolutePath() + "'.", null);        }        for(int i=0; i < localFiles.length; i++){	        File aNewFile = localFiles[i];            try {	            if (!aNewFile.createNewFile()) {	                error("failed to create a new file '"	                        + aNewFile.getAbsolutePath() + "'.", null);	            }	        } catch (IOException ioe) {	            aNewFile.delete();	            error("error while creating a new file '"	                    + aNewFile.getAbsolutePath() + "'", ioe);	        }		        String contents = null;	        if(i > fileContents.length-1){	            continue;	        }else{	            contents = fileContents[i];	        }	        	        /*	         * writing a text into the file	         */	        FileOutputStream fos = null;	        try {	            fos = new FileOutputStream(aNewFile);	            fos.write(contents.getBytes());	        } catch (FileNotFoundException fnfe) {	            error("the file '" + aNewFile.getAbsolutePath() + "' is not found", fnfe);	        } catch (IOException ioe) {	            error("error while writing into the file '"	                    + aNewFile.getAbsolutePath() + "'", ioe);	        } finally {	            if (fos != null) {	                try {	                    fos.close();	                } catch (IOException ioe) {	                    //	                }	            }	        }        }    }