Changed Cookie#isExpired() to take current system time as an argument instead of obtaining it through System#currentTimeMillis() Suggested by Roland Weber