Session session = config.getSessionFactory().getCurrentSession(workspace);
return wrapSession(session);
}
public JcrSession wrapSession(Session session) {
SessionBehavior behavior = new SessionBehavior(this);
return JcrSession.Wrapper.wrap(session, behavior);
}