componentTmp = componentClass.newInstance();
}
if ( componentTmp instanceof IComponent ) {
component = (IComponent) componentTmp;
} else if ( componentTmp instanceof IAction ) {
component = new ActionDelegate( componentTmp );
} else {
// Try this out...
PojoComponent pc = new PojoComponent();
pc.setPojo( componentTmp );
component = pc;