if (Component.class.isAssignableFrom(beanClass)) {
String lnf = getBeanClassLnf(beanClass);
ILookAndFeelAdapter lnfAdapter = ExtensionRegistry.getLnfAdapter(lnf);
if (lnfAdapter != null) {
LookAndFeel newlnf = lnfAdapter.getLookAndFeelInstance();
Component bean = (Component) runWithLnf(newlnf, new ISyncUITask() {
public Object doTask() throws Throwable {
return createBeanFromClass(beanClass);
}
});