please include function getThoughtSpace. static void addThoughtSpace(ThoughtSpace ts) { getThoughtSpace_map.put(ts.globalID, ts); if (!aiConceptsMap_cached().containsKey(ts.globalID)) { AIConcept c = unlisted(AIConcept); c.globalID = ts.globalID; c.name = "-> a thought space"; aiConceptsMap_cached().put(c.globalID, c); } }