title: Robospice dynamically mapping
body: <p>Can somebody tell me how it's possible to do a dynamically mapping with RoboSpice in my "RequestResult.java"?</p>
  
  <p>My JSON looks either like this:</p>
  
  <pre><code>"result": [
      {
        "attributeX1" "...",
        "type": "x",
        "attributeXi" "..."
      },
      {
        "attributeX1": "...",
        "type": "x",
        "attributeXi": "..."
       }
  ]
  </code></pre>
  
  <p>or </p>
  
  <pre><code>"result": [
      {
        "attributeY1" "...",
        "type": "y",
        "attributeYi" "..."
      },
      {
        "attributeY1" "...",
        "type": "y",
        "attributeYi" "..."
      }
  ]
  </code></pre>
  
  <p>On a request the type is either x or y. So if "type": "x" it's necessary for me to use model "x.java" and if "type" : "y" need to use model "y.java" </p>