Issue with canCreate method: It should not check  and  containers to find out if it can create an instance, instead it has to check ,  and  containers for that only. If Alias passed to canCreate, it has to be resolved at first and than checked.  can be checked through has method