if (!sr.getPlatform().getPlatformType().equals(PlatformType.ILLUMINA)) {
throw new IOException("Trying to interrogate a " + sr.getPlatform().getPlatformType().getKey() + " sequencer reference with an Illumina strategy");
}
try {
Status status = requestManager.getStatusByRunName(runName);
if (status != null) {
model.put("referenceName", sr.getName());
model.put("referenceId", sr.getId());
model.put("runId", requestManager.getRunByAlias(runName).getId());
model.put("runName", runName);
model.put("runStatus", status);
InputStream in = StatsController.class.getResourceAsStream("/status/xsl/illumina/statusXml.xsl");
if (in != null) {
String xsl = LimsUtils.inputStreamToString(in);
model.put("statusXml", (SubmissionUtils.xslTransform(status.getXml(), xsl)));
}
}
else {
model.put("error", MisoWebUtils.generateErrorDivMessage("Cannot consume the xml file for the given run name: " + runName));
}