protected Collection<InternalType> getObjectInstances(ModeledAuthenticatedUser currentUser,
            Collection<ModelType> models) throws GuacamoleException {

        // Create new collection of objects by manually converting each model
        Collection<InternalType> objects = new ArrayList<>(models.size());
        for (ModelType model : models)
            objects.add(getObjectInstance(currentUser, model));

        return objects;
        
    }
Returns a collection of objects which are backed by the models in the
given collection.

@param currentUser
    The user for whom these objects are being created.

@param models
    The model objects to use to back the objects within the returned
    collection.

@return
    A collection of objects which are backed by the models in the given
    collection.

@throws GuacamoleException
    If any of the object instances cannot be created.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/base/ModeledDirectoryObjectService.java