static Concept getConcept(long id) {
ret db_mainConcepts().getConcept(id);
}
static Concept getConcept(Concepts concepts, long id) {
ret concepts.getConcept(id);
}
static A nuLike getConcept(Class cc, long id) {
ret getConcept(db_mainConcepts(), cc, id);
}
static A getConcept(Concepts concepts, Class cc, long id) {
Concept c = concepts.getConcept(id);
if (c == null) null;
if (!isInstance(cc, c))
fail("Can't convert concept: " + getClassName(c) + " -> " + getClassName(cc) + " (" + id + ")");
ret (A) c;
}