String eoModelPath = NSPathUtilities.stringByDeletingLastPathComponent(eomodel.path());
eoModelPath = NSPathUtilities.stringByAppendingPathComponent(eoModelPath, eomodel.name());
eoModelPath = NSPathUtilities.stringByAppendingPathExtension(eoModelPath, "eomodeld");
String gsvModelPath = NSPathUtilities.stringByAppendingPathComponent(eoModelPath, GSVModel.MODEL_NAME);
gsvModelPath = NSPathUtilities.stringByAppendingPathExtension(gsvModelPath, GSVModel.MODEL_EXTENSION);
WOXMLDecoder decoder = WOXMLDecoder.decoder();
decoder.setEncoding("UTF-8");
model = (GSVModel)decoder.decodeRootObject(gsvModelPath);
model.setEomodelPath(eoModelPath); //not sure why we need to do this?
model.init(eomodel);
model.saveModel(); //not sure why we need to do this?
//now cache