nodes = gson.fromJson(json, Nodes.class);
} finally {
json.close();
}
} catch (IOException e) {
throw new ResourceFormatParserException(e);
} catch (JsonIOException e) {
throw new ResourceFormatParserException(e);
} catch (JsonSyntaxException e) {
throw new ResourceFormatParserException(e);
}
return nodeSetFromNodes(nodes);
}