Alfresco Javascript API has a search.findNode("workspace://SpacesStore/" + documentguid) method, that giving a guid of a document (node), one can get the noderef of the document.
How to get this "org.alfresco.service.cmr.repository.NodeRef" using java (backend java), having only the document/node guid?