JsonObject obj = json.getAsJsonObject();
Set<ArtifactRange> parents = context.deserialize(obj.get("parents"), PARENTS_TYPE);
parents = parents == null ? Collections.<ArtifactRange>emptySet() : parents;
Set<PluginClass> plugins = context.deserialize(obj.get("plugins"), PLUGINS_TYPE);
plugins = plugins == null ? Collections.<PluginClass>emptySet() : plugins;
<BUG>try {
validateParentList(parents);
validatePluginList(plugins);
} catch (InvalidArtifactException e) {
throw new JsonParseException(e.getMessage());
}</BUG>
return new SystemArtifactConfig(parents, plugins);

JsonObject obj = json.getAsJsonObject();
Set<ArtifactRange> parents = context.deserialize(obj.get("parents"), PARENTS_TYPE);
parents = parents == null ? Collections.<ArtifactRange>emptySet() : parents;
Set<PluginClass> plugins = context.deserialize(obj.get("plugins"), PLUGINS_TYPE);
plugins = plugins == null ? Collections.<PluginClass>emptySet() : plugins;
return new SystemArtifactConfig(parents, plugins);
