public Catalog getCatalog(String catName) throws HiveException {
    PerfLogger perfLogger = SessionState.getPerfLogger();
    perfLogger.perfLogBegin(CLASS_NAME, PerfLogger.HIVE_GET_CATALOG);
    try {
      return getMSC().getCatalog(catName);
    } catch (NoSuchObjectException e) {
      return null;
    } catch (Exception e) {
      throw new HiveException(e);
    } finally {
      perfLogger.perfLogEnd(CLASS_NAME, PerfLogger.HIVE_GET_CATALOG, "HS2-cache");
    }
  }
@param privileges
         a bag of privileges
@return true on success
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java