private void importArtifactsForJob(URIReference jobResource, Graph jobsGraph) {
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Importing artifacts for job " + jobResource.getURIText());
    }

    String artifactsPathFromRoot = jobArtifactsPath(jobResource, jobsGraph);

    for (String jobArtifactPath : unitTestArtifactPathsForJob(jobsGraph, jobResource)) {
      if (LOGGER.isDebugEnabled()) {
        LOGGER.debug(
            "Found artifact at pathFromArtifactRoot: "
                + artifactsPathFromRoot
                + " and artifactPath: "
                + jobArtifactPath);
      }

      for (File testSuiteXMLFile :
          getArtifactFilesOfType(artifactsPathFromRoot, jobArtifactPath, "xml")) {
        try {
          if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Trying to import " + testSuiteXMLFile);
          }
          importer.importFile(jobsGraph, jobResource, new FileInputStream(testSuiteXMLFile));
        } catch (FileNotFoundException e) {
          LOGGER.debug("Unable to find file: " + testSuiteXMLFile.toString());
        }
      }
    }
  }
 public JobResourceImporter(
     String artifactBaseDir,
     TempGraphFactory graphFactory,
     XSLTTransformerRegistry transformerRegistry,
     XmlApiService xmlApiService,
     SystemEnvironment systemEnvironment) {
   this.artifactBaseDir = artifactBaseDir;
   rdfizer =
       new GoGRDDLResourceRDFizer(
           "job",
           XSLTTransformerRegistry.CRUISE_JOB_GRDDL_XSL,
           graphFactory,
           transformerRegistry,
           xmlApiService);
   importer = new XMLArtifactImporter(systemEnvironment);
   AntJUnitReportRDFizer junitRDFizer =
       new AntJUnitReportRDFizer(graphFactory, transformerRegistry);
   importer.registerHandler(junitRDFizer);
   importer.registerHandler(new NUnitRDFizer(junitRDFizer, transformerRegistry));
 }