InputStream inputStream = url.openStream();
JsonReader jsonReader = Json.createReader(inputStream);
JsonObject simulationObject = jsonReader.readObject();
String timeSourceClass = simulationObject.getString("timesource");
ITimeSource timeSource = null;
if (timeSourceClass != null) {
timeSource = (ITimeSource) Class.forName(timeSourceClass)
.newInstance();
} else {
timeSource = new SystemTimeTimeSource();