Attribute modification within a class
<p>I have the method getPlan and I try to modify an object (attribute in my class) </p>

<pre><code>class XYZ

/**
 * Plan.
 */
private Plan plan;

@Override
public final Plan getPlan() {
    subjects.addAll(plan.getSubjects());
    ...
    return new Plan("1", subjects.size(), subjects);
}

@Override
public final Graph createGraph() {
    Plan fPlan = getPlan();
    ...
    return graph;
}
</code></pre>

<p>In the second method createGraph, I try to get the modified object (fPlan), but it's in the initial state (Plan plan).  I hope you understand the situation. </p>

<p>Thanks in advance! </p>
