code: protected CmsObjectWrapper getCms(SrvSession session, TreeConnection connection) throws CmsException {
  
          CmsJlanRepository repository = ((CmsJlanDeviceContext)connection.getContext()).getRepository();
          CmsObjectWrapper result = repository.getCms(session, connection);
          return result;
      }
docs: Creates a CmsObjectWrapper for the current session.<p>
  
  @param session the current session
  @param connection the tree connection
  
  @return the correctly configured CmsObjectWrapper for this session
  
  @throws CmsException if something goes wrong