// already exists
this.getTriples(name);
} catch (NoSuchEntityException e) {
Graph result;
if (triples == null) {
result = new SimpleGraph(new SimpleMGraph());
} else {
if (Graph.class.isAssignableFrom(triples.getClass())) {
result = (Graph) triples;
} else {
result = new SimpleGraph(triples);
}
}
tripleMap.put(name, result);
return result;