@Path("{identifier}")
    public DirectoryObjectResource<InternalType, ExternalType>
        getObjectResource(@PathParam("identifier") String identifier)
            throws GuacamoleException {

        // Fetch the object to be updated. If no object is found, a directory
        // GET failure event will be logged. If no exception is thrown, the
        // object is guaranteed to exist
        InternalType object = getObjectByIdentifier(identifier, null);

        // Return a resource which provides access to the retrieved object
        DirectoryObjectResource<InternalType, ExternalType> resource = resourceFactory.create(authenticatedUser, userContext, directory, object);
        fireDirectorySuccessEvent(DirectoryEvent.Operation.GET, identifier, object);
        return resource;

    }
Retrieves an individual object, returning a DirectoryObjectResource
implementation which exposes operations available on that object.

@param identifier
    The identifier of the object to retrieve.

@return
    A DirectoryObjectResource exposing operations available on the
    object having the given identifier.

@throws GuacamoleException
    If an error occurs while retrieving the object.
guacamole/src/main/java/org/apache/guacamole/rest/directory/DirectoryResource.java