/**
* @host
*/
protected synchronized JupiterDocumentServer getServer(SPath path) {
JupiterDocumentServer docServer = this.concurrentDocuments.get(path);
if (docServer == null) {
// Create new document server
docServer = new JupiterDocumentServer(path);
// Create new local host document client
docServer.addProxyClient(sarosSession.getHost().getJID());
/** Add all users with {@link User.Permission#WRITE_ACCESS} */
for (User userWithWriteAccess : sarosSession.getUsersWithWriteAccess()) {
docServer.addProxyClient(userWithWriteAccess.getJID());
}
this.concurrentDocuments.put(path, docServer);
}
return docServer;