protected List<String> getAccessibleWorkspaceNames() {
Session session = createSession(null);
try {
return Arrays.asList(session.getWorkspace().getAccessibleWorkspaceNames());
} catch (RepositoryException e) {
throw new JcrException(e);
} finally {
closeSession(session, false);
}
}