PLINK-268 foundation for permission entity lookup, looks like EntityMapping won't be as useful as assumed, need to rewrite...