if(readWrite) {
// Reuse existing model if not yet garbage collected.
modelGraph = syncModels.get(name);
}
if((modelGraph != null || isExistingGraphName(name)) && create){
throw new EntityAlreadyExistsException(name);
} else if(modelGraph == null){
String modelName = name.getUnicodeString();
modelGraph = new ModelGraph(datasetLock, name.equals(defaultGraphName) ?
getDataset().getNamedModel("urn:x-arq:UnionGraph") :
getDataset().getNamedModel(modelName),readWrite);