UIMeta.UIContext ctx = MetaContext.currentContext(requestContext.getCurrentComponent());
AWTDisplayGroup displayGroup = (AWTDisplayGroup)ctx.values().get("displayGroup");
Assert.that(displayGroup != null, "MetaSearch used without displayGroup in Meta Context");
String className = (String)ctx.values().get(ObjectMeta.KeyClass);
Class cls = (className != null) ? ClassUtil.classForName(className) : null;
ObjectContextDataSource dataSource = (ObjectContextDataSource)displayGroup.dataSource();
if (dataSource == null) {
dataSource = new ObjectContextDataSource(cls);
displayGroup.setDataSource(dataSource);
}
else {