harvester.harvest(conditionElement);
}
}
private void writeConfigMetadataRepository(ConfigMetadataRepository repository) throws IOException {
ConfigMetadataRepositoryMapper mapper = new ConfigMetadataRepositoryJsonMapper();
FileObject fileObject = env.getFiler().createResource(
StandardLocation.CLASS_OUTPUT, "", JSON_METADATA_LOCATION);
OutputStream out = fileObject.openOutputStream();
try {
mapper.writeRepository(repository, out);
}
finally {
out.close();
}
}