/**
* Still used in getNCubesFromResource
*/
private static JsonObject getJsonObjectFromResource(String name) throws IOException
{
JsonReader reader = null;
try
{
URL url = NCubeManager.class.getResource("/" + name);
File jsonFile = new File(url.getFile());
InputStream in = new BufferedInputStream(new FileInputStream(jsonFile));
reader = new JsonReader(in, true);
return (JsonObject) reader.readObject();
}
finally
{
IOUtilities.close(reader);
}