properties.put(XMLRepository.DEFAULT_PROJECT_DIRECTORY_PROPERTY,
file.getAbsolutePath());
properties.put(XMLRepository.REPLACE_DIR_PROPERTY,
new Boolean(true));
repository = XMLRepository.createRepository(properties);
repositoryConnection = repository.connect();
try {
command.execute(repositoryConnection,
repository,
file.getAbsolutePath());