This is the problem: let's say I create a Workspace called "lalala".
Now I run my code
</code></p><pre><code>
DocumentModel lalalaWs = new DocumentModelImpl("/default-domain/workspaces/", "lalala", "Workspace");
if (!documentManager.exists(lalalaWs.getRef())) {
log.info("it doesn't exist");
}
else {
log.info("it exists");
}
and it prints "it exists", then I delete the Workspace and call the code again and it still prints "it exists"
is it a bug or am I doing something wrong?