String workspaceName = nodeReference.getWorkspace();
if (workspaceName == null || workspaceName.length() == 0)
workspaceName = sessionProvider.getCurrentWorkspace();
Session ses = sessionProvider.getSession(workspaceName, repository);
JcrURLConnection conn = new JcrURLConnection(nodeReference, ses, nodeRepresentationService);
return conn;
}
catch (Exception e)
{