protected void download(String downloadPath,String fileName){
    	try {
			ftp.changeWorkingDirectory(downloadPath);
			FTPFile[] files=ftp.listFiles();
			for(FTPFile file:files){
				if(file.getName().equals(fileName)){
					System.out.println("Downloading "+fileName);
					File localfile=new File(fileName);
					OutputStream out=new FileOutputStream(localfile);
					ftp.retrieveFile(fileName, out);
					out.close();
				}
			}
			
			
		} catch (IOException e) {
			System.out.println("Error in downloadfile from ftp");
//			e.printStackTrace();
		}
    }