refactor(RegistryDynamic): refactor how annotations are searched