Refactored Component resolution in AbstractContext.