     prefix: 'sharing-manager'
 
 # We need to access the DS directly because of the genericity of the
-# received docTypes
+# received docTypes.
 clientDS = new Client "http://localhost:9101/"
 
 if process.env.NODE_ENV in ['test', 'production']

                        docType: docType
                createTemporaryNotif apps[docType], message, callback

    # A shared document has been updated by the sharer
    else if tokens[2] is "update"
        # The doc id and the shareID are concatenated
        [id, shareID] = extractIds id

        if id? and shareID?
            getSharingInfos id, shareID, (err, sharing, docType) ->
                if err?
                    log.error err
                # The sharer shouldn't be notified as he created the request
                else if not sharing.targets? and docType?
                    sharerName = sharing.sharerName
                    article = articleBeforeDocType docType

    else
        article = "a"


# Retreive all the sharing informations to build a human-readable notification.
getSharingInfos = (id, shareID, callback) ->
    path = "request/sharing/byShareID"
    options =
