public void export(Command command) throws RepositoryException {
		try {
			String exportPath = command.getParams()[1];
			File canonicalExportFile = new File(exportPath).getCanonicalFile();
			if (canonicalExportFile.getPath().contains(location.getPath()))
				throw new RepositoryException(
						"It is not allowed to export something into the "
								+ location.toString() + " repository folder.");
			
			DataSet ds = db.getDataSet(command.getParams()[0]);
			if (ds == null) {
				throw new RepositoryException("Unknown data set "
						+ command.getParams()[0]+".");
			}
			
			if (!canonicalExportFile.exists()) {
				throw new RepositoryException("Destination folder '" +
						exportPath + "' does not exist.");
			} else if (canonicalExportFile.isFile()) {
				throw new RepositoryException("Destination folder '" +
						exportPath + "' is a file not a folder.");
			}
			
			
			File destination = new File(canonicalExportFile,
										ds.getMetadata().getOriginalName());
			if (destination.exists()) {
				throw new RepositoryException("There is already a file " +
						"named '" + ds.getMetadata().getOriginalName() + "' " +
						"in destination folder '" + exportPath + "'.");
			}
			ds.copyFileTo(destination);
			String message = "The data set " + command.getParams()[0]
					+ " (original name: " + ds.getMetadata().getOriginalName() + ")"
					+ " has been successfully exported to '"
					+ command.getParams()[1]+"'.";
			
			logger.logSuccess(message);
		} catch (IOException e) {
			throw new RepositoryException("Could not get Canonical Path for " +
					command.getParams()[1], e);
		} catch (StorageException e) {
			throw new RepositoryException("Error in Database", e);
		} 
	}