Using REGEX I can extract the ids from the DocumentManagers' CurrentDocument. The pattern is stable, but there might be a problem if a user has quotation marks in their id name.