Refactoring: use applicationName instead of Application when searching permssion by Name and App (-Name)