code: protected Set<PermissionType> getPermissionInstances(Collection<ModelType> models) {
  
          // Create new collection of permissions by manually converting each model
          Set<PermissionType> permissions = new HashSet<PermissionType>(models.size());
          for (ModelType model : models)
              permissions.add(getPermissionInstance(model));
  
          return permissions;
  
      }
docs: Returns a collection of permissions which are based on the models in
  the given collection.
  
  @param models
  The model objects to use to produce the permissions within the
  returned set.
  
  @return
  A set of permissions which are based on the models in the given
  collection.