code: function StatePermissionMap(state) {
      var toStateObject = state.$$permissionState();
      var toStatePath = toStateObject.path;
  
      angular.forEach(toStatePath, function (state) {
        if (areSetStatePermissions(state)) {
          var permissionMap = new PermPermissionMap(state.data.permissions);
          this.extendPermissionMap(permissionMap);
        }
      }, this);
    }
docs: Constructs map instructing authorization service how to handle authorizing
  @constructor permission.ui.PermStatePermissionMap
  @extends permission.PermPermissionMap