public void apply(RelatedObjectSet objects) throws GuacamoleException {

        // Add any added identifiers
        if (!addedObjects.isEmpty())
            objects.addObjects(addedObjects);

        // Remove any removed identifiers
        if (!removedObjects.isEmpty())
            objects.removeObjects(removedObjects);

    }
Applies all queued changes to the given RelatedObjectSet.

@param objects
    The RelatedObjectSet to add and/or remove objects from.

@throws GuacamoleException
    If any add or remove operation is disallowed by the underlying
    RelatedObjectSet.
guacamole/src/main/java/org/apache/guacamole/rest/identifier/RelatedObjectSetPatch.java