code: List<Cookie> getCookies(String domain) {
          cookieManager.removeExpiredCookie();
          String cookies = cookieManager.getCookie(domain);
          List<Cookie> result = new LinkedList<Cookie>();
          if (cookies == null) {
              return result;
          }
          for (String cookie : cookies.split(COOKIE_SEPARATOR)) {
              String[] cookieValues = cookie.split("=",2);
              if (cookieValues.length >= 2) {
                  result.add(new Cookie(cookieValues[0].trim(), cookieValues[1], domain, null, null));
              }
          }
          return result;
      }
docs: /* package