Refactored template and component models to inherit findChild function
from common 'ancestor'