CheckArg.isNotNull(file, "file");
if (file.exists() && file.canRead()) {
CndImporter importer = createCndImporter();
try {
Set<Namespace> namespacesBefore = batch.getGraph().getContext().getNamespaceRegistry().getNamespaces();
importer.importFrom(file, getProblems());
// Record any new namespaces added by this import ...
registerNewNamespaces(namespacesBefore);
} catch (IOException e) {
throw new DnaConfigurationException(e);