[component manager] added getComponent template function;