return null;
throw new IOException("[RepositoryBrowser] Could not download file. " + fileName);
	private File downloadFile(String urlAddress, String fileName) {		File tempWorkingDirectory = getWorkingDirectory();		// clean the working directory		// set time to 60 minutes		FileUtil.deleteAllFilesAndFolderInFolderOlderThan(tempWorkingDirectory, 3600000);		// set folder for this instance of repositoryBrowser		// folder gets the name of the identifier		File myFolder = new File(tempWorkingDirectory, getIdentifer());		if (! myFolder.exists()) {			myFolder.mkdir();		}	    File destination = new File(myFolder, fileName);		try {			Wagon wagon = new LightweightHttpWagon();		    Repository localRepository = new Repository();		    localRepository.setUrl(urlAddress);		    if ( !destination.exists() ) {			        wagon.connect(localRepository);			        wagon.get(fileName, destination );		    }		}		catch (TransferFailedException ex) {			getLogger().log(Level.WARNING, "[RepositoryBrowser] Transfer failed: "+ urlAddress + fileName , ex);			return null;		}		catch (ConnectionException ex) {			getLogger().log(Level.WARNING, "[RepositoryBrowser] Connection problems: "+ urlAddress + fileName , ex);			return null;		}		catch (AuthenticationException ex) {			getLogger().log(Level.WARNING, "[RepositoryBrowser] Authentication problems: "+ urlAddress + fileName , ex);			return null;		}		catch (ResourceDoesNotExistException ex) {			getLogger().log(Level.WARNING, "[RepositoryBrowser] File does not exist: "+ urlAddress + fileName , ex);			return null;		}		catch (AuthorizationException ex) {			getLogger().log(Level.WARNING, "[RepositoryBrowser] Authorization problems: "+ urlAddress + fileName , ex);			return null;		}		return destination;	}