See this wiki brainstorming page <http://dev.helma.org/wiki/Config+in+Code/>. If Type.collection() would work any time, it would solve your problem, I think. Unfortunately, it doesn't work at all [yet] afaik.