@SuppressWarnings("unchecked")
  public <T extends HMSCacheSupport.HMSCacheInfo> T getIfPresent(
      HMSCacheType hmsCacheType,
      String qualifiedTableName
  ) throws StageException {
    """
	Returns if the {@link HMSCache} has the corresponding {@link HMSCacheSupport.HMSCacheInfo} and qualified table name.
	@param hmsCacheType {@link HMSCacheType}
	@param qualifiedTableName qualified table name
	@param <T> {@link HMSCacheSupport.HMSCacheInfo}
	@return Corresponding {@link HMSCacheSupport.HMSCacheInfo} for the qualified table name.
	@throws StageException if the {@link HMSCacheType} is not supported by {@link HMSCache}
    """
    if (!cacheMap.containsKey(hmsCacheType)) {
      throw new StageException(Errors.HIVE_16, hmsCacheType);
    }
    Optional<HMSCacheSupport.HMSCacheInfo> ret = cacheMap.get(hmsCacheType).getIfPresent(qualifiedTableName);
    return ret == null ? null : (T)ret.orNull();
  }
@SuppressWarnings("unchecked")
  public <T extends HMSCacheSupport.HMSCacheInfo> T getIfPresent(
      HMSCacheType hmsCacheType,
      String qualifiedTableName
  ) throws StageException {
    if (!cacheMap.containsKey(hmsCacheType)) {
      throw new StageException(Errors.HIVE_16, hmsCacheType);
    }
    Optional<HMSCacheSupport.HMSCacheInfo> ret = cacheMap.get(hmsCacheType).getIfPresent(qualifiedTableName);
    return ret == null ? null : (T)ret.orNull();
  }
@ SuppressWarnings ( "unchecked" ) public < T extends HMSCacheSupport . HMSCacheInfo > T getIfPresent ( HMSCacheType hmsCacheType , String qualifiedTableName ) throws StageException { if ( ! cacheMap . containsKey ( hmsCacheType ) ) { throw new StageException ( Errors . HIVE_16 , hmsCacheType ) ; } Optional < HMSCacheSupport . HMSCacheInfo > ret = cacheMap . get ( hmsCacheType ) . getIfPresent ( qualifiedTableName ) ; return ret == null ? null : ( T ) ret . orNull ( ) ; }
Returns if the {@link HMSCache} has the corresponding {@link HMSCacheSupport.HMSCacheInfo} and qualified table name.
@param hmsCacheType {@link HMSCacheType}
@param qualifiedTableName qualified table name
@param <T> {@link HMSCacheSupport.HMSCacheInfo}
@return Corresponding {@link HMSCacheSupport.HMSCacheInfo} for the qualified table name.
@throws StageException if the {@link HMSCacheType} is not supported by {@link HMSCache}
Returns if the {