groupName = name;
}
Stage s = new Stage(name, toDatabaseFile(libraryId));
Map<String, Object> config = SerializationUtils.fromJson(jsonConfig);
if (null == config) {
throw new JsonException(new JsonParseException("Configuration was empty"));
} else if (!config.containsKey("stageClass")) {
throw new JsonException(new JsonParseException("Required configuration parameter 'stageClass' missing"));
}
config.put("stageName", name);
config.put("stageGroup", groupName);
config.put("libId", libraryId);
s.setProperties(config);