title: How to convert Iterator.forEachRemaining to Java 6?
body: <p>In Java 8 I have this:</p>
  
  <pre><code>jsonNode.fields().forEachRemaining(
      item -&gt; map.put(
          item.getKey(),
          getObject(item.getValue())
      )
  );
  </code></pre>
  
  <p>Note that jsonNode comes from:</p>
  
  <pre><code>import com.fasterxml.jackson.databind.JsonNode;
  </code></pre>
  
  <p>How do I convert the above code to Java 1.6 compliant?</p>