List<InputStream> streams = new ArrayList<InputStream>();
streams.add(new FileInputStream(inputFile));
obSourcePlugin.setInputInfo(streams, inputFile.getName());
// Retrieve the observations.
AbstractObservationRetriever retriever = obSourcePlugin
.getObservationRetriever();
ValidObservation.reset();
retriever.retrieveObservations();
if (retriever.getValidObservations().isEmpty()) {
throw new ObservationReadError(
"No observations for the specified period or error in observation source.");
}
// Create plots, tables.
NewStarType type = NewStarType.NEW_STAR_FROM_ARBITRARY_SOURCE;
mediator.createNewStarObservationArtefacts(type, retriever
.getStarInfo(), 0, isAdditive);
} catch (InterruptedException e) {
ValidObservation.restore();