Feature/has direct mapping

After introducing the `parentInjector`, there was no way to tell if the mapping comes from the injector or from one of its parents, therefore added the `hasDirectMapping` method.