final String fullPath = "/" + EXO_REGISTRY + "/" + entryPath;
Session session = session(sessionProvider, repositoryService.getCurrentRepository());
try
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
session.exportDocumentView(fullPath, out, true, false);
return RegistryEntry.parse(out.toByteArray());
}
catch (IOException e)
{
throw new RepositoryException("Can't export node " + fullPath + " to XML representation " + e);