static Concept cnew(S name, O... values) {
ret cnew(db_mainConcepts(), name, values);
}
static Concept cnew(Concepts concepts, S name, O... values) {
Class extends Concept> cc = findClass(name);
concepts_unlisted.set(true);
Concept c;
try {
c = cc != null ? nuObject(cc) : new Concept(name);
} finally {
concepts_unlisted.set(null);
}
csetAll(c, values);
concepts.register(c);
ret c;
}
static A nuLike cnew(Class cc, O... values) {
ret cnew(db_mainConcepts(), cc, values);
}
static A cnew(Concepts concepts, Class cc, O... values) {
concepts_unlisted.set(true);
A c;
try {
c = nuObject(cc);
} finally {
concepts_unlisted.set(null);
}
csetAll(c, values);
concepts.register(c);
ret c;
}