code: private void setupModelSpecification(Map<String, String> locationMappings, Set<String> ignoredImports) {
  
          OntDocumentManager documentManager = new OntDocumentManager();
  
          // Add mapping specific to OWLS TC 4 tests.
          // Add mappings to local files to save time and avoid connection issues
          for (Map.Entry<String, String> mapping : locationMappings.entrySet()) {
              documentManager.addAltEntry(mapping.getKey(), mapping.getValue());
          }
  
          // Ignore the imports indicated
          for (String ignoreUri : ignoredImports) {
              documentManager.addIgnoreImport(ignoreUri);
          }
  
          // Don't follow imports for now until we find a way to control this well
  //        documentManager.setProcessImports(true);
          documentManager.setProcessImports(false);
  
          documentManager.setCacheModels(false);
  
          // No inferencing here. Leaving this for the backend
          this.modelSpec = new OntModelSpec(OntModelSpec.OWL_MEM);
  //        this.modelSpec = new OntModelSpec(OntModelSpec.OWL_MEM_MICRO_RULE_INF);
          this.modelSpec.setDocumentManager(documentManager);
      }
docs: Setup a the OntModelSpec to be used when parsing services.
  In particular, setup import redirections, etc.
  
  @param locationMappings
  @param ignoredImports
  @return