};
}
static SimulationSource classpath(final String classpath) {
return () -> {
try {
<BUG>return Optional.of(OBJECT_READER.readValue(findResourceOnClasspath(classpath)));
} catch (IOException e) {</BUG>
throw new IllegalArgumentException("Cannot load classpath resource: '" + classpath + "'", e);
}
};

};
}
static SimulationSource url(final String url) {
return () -> {
try {
return OBJECT_READER.readValue(new URL(url));
} catch (IOException e) {
throw new IllegalArgumentException("Cannot read simulation", e);
}
};
