/** * Create and return a new or reused component instance of specified type. * * @param <T> Type of component * @param type Type of component to return * @return Created component */ public <T extends Component> T createComponent(Class<T> type) { return cm.createComponent(type); }