Can be re-written:

    req.cookies.toIterator.map(makeJavaCookie)