final Object o = ((Class)info[0]).newInstance();
if (!(o instanceof Richlet))
throw new UiException(Richlet.class+" must be implemented by "+info[0]);
final Richlet richlet = (Richlet)o;
richlet.init(new RichletConfigImpl(_wapp, (Map)info[1]));
synchronized (_richlets) {
_richlets.put(name, richlet);
}
return richlet;