title: ConcurrentModificationException in Playframework
body: <p>I am getting an <strong>ConcurrentmodificationException</strong> while iterating over an object that is stored in the Cache.</p>
  
  <p>The Controllercode looks like this:</p>
  
  <pre><code>....
  SomeObj o = (SomeObj)Cache.get("obj");
  for(listObj lo : o.getGetListObjects()){
      if(lo.getName().equals(name)){
          o.getEventRecipes().remove(lo);         
      }
  </code></pre>
  
  <p>The Execution is getting thrown as soon as the foreach-loop starts. There are no other threads that are explicitly running at the same time.</p>
  
  <p>I am using <strong>Playframework 2.1.1</strong> with <strong>Java</strong>. </p>
  
  <p>Does anyone have an idea how to resolve this?</p>