class KMLSpatialTemporalUtils {

    public static Date getExpireTime(String networkLinkControlExpires, String cacheControlHeader, String expiresHeader)
    {
        Date expireTime = parseDateString(networkLinkControlExpires);
        if (!isExpireTimeValid(expireTime))
        {
            expireTime = getMaxAgeHeaderTime(cacheControlHeader, SystemTimeMillisSupplier.INSTANCE);
            if (!isExpireTimeValid(expireTime))
            {
                expireTime = getExpiresHeaderTime(expiresHeader);
                if (!isExpireTimeValid(expireTime))
                {
                    expireTime = null;
                }
            }
        }
        return expireTime;
    }

    private  KMLSpatialTemporalUtils();

}