storing the path to a setter method so that it can be called later
<pre><code> public class TopLevelObject{

    List&lt;SecondLevelObject&gt; secondLevelObjects;
    Long field;
</code></pre>

<p>}</p>

<pre><code>public class SecondLevelObject{
    List&lt;ThirdLevelObject&gt; thirdLevelObjects;
    Long field;
</code></pre>

<p>}</p>

<pre><code>public class ThirdLevelObject{
     Long field1;
     Long field2;
</code></pre>

<p>}</p>

<p>We have a TopLevelObject, which contains a list of SecondLevelObjects, all of which contain list of ThirdLevelObjects</p>

<p>We need to initialize some fields of this structure initially by iterating through it, and postpone initializing the others, but avoid iterating it all over again</p>

<p>So is it possible to store references/path to the setters of that field to call them later? (Assuming you can know which setter to call when)</p>
