BinaryOWLMetadata metadata = toBinaryOWLMetadata(value);
BinaryOWLOntologyDocumentSerializer serializer = new BinaryOWLOntologyDocumentSerializer();
final File file = getFreshImportCacheFile();
os = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));
serializer.write(new OWLOntologyWrapper(ont), os, metadata);
ontologyIDs.add(ont.getOntologyID());
metadataMap.put(ont.getOntologyID(), value);
LOGGER.info("Cached imported ontology: " + ont.getOntologyID() + " in " + file.getName());
}