}
}
@SuppressWarnings("unchecked")
NoteList getInEdgesSet(final String label) {
NoteList edgeIds = getInEdgesMap().get(label);
if (edgeIds == null) {
Object o = getProperty(DominoVertex.IN_PREFIX + label, java.util.Collection.class);
if (o != null) {
if (o instanceof NoteList) {
edgeIds = ((NoteList) o);
} else if (o instanceof java.util.Collection) {
NoteList result = new NoteList(true);
for (Object raw : (Collection) o) {
if (raw instanceof String) {
result.add(new NoteCoordinate(""/*TODO NTF This should be some default replid*/, (String) raw));
} else {
//TODO NTF
}
}
edgeIds = result;
} else {
log_.log(Level.SEVERE, "ALERT! InEdges returned something other than a Collection " + o.getClass().getName()
+ ". We are clearing the values and rebuilding the edges.");
edgeIds = new NoteList(true);
}
} else {
edgeIds = new NoteList(true);
}
Map map = getInEdgesMap();
map.put(label, edgeIds);
}
return edgeIds;