code: @Override
    public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException {
      try {
        TGetCatalogsReq req = new TGetCatalogsReq(sessionHandle.toTSessionHandle());
        TGetCatalogsResp resp = cliService.GetCatalogs(req);
        checkStatus(resp.getStatus());
        TProtocolVersion protocol = sessionHandle.getProtocolVersion();
        return new OperationHandle(resp.getOperationHandle(), protocol);
      } catch (HiveSQLException e) {
        throw e;
      } catch (Exception e) {
        throw new HiveSQLException(e);
      }
    }
docs: /* (non-Javadoc)
  @see org.apache.hive.service.cli.ICLIService#getCatalogs(org.apache.hive.service.cli.SessionHandle)