title: Error connecting to work item repository
body: <p>I'm getting this exception when trying to connect to a custom work item repository in jBPM 6.1.0.Final workbench:</p>
  
  <pre><code>2015-04-15 17:03:07,712 ERROR [io.undertow.request] (default task-24) UT005023: Exception handling request to /jbpm-console/jbpmservicerepo: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
          at org.jbpm.process.workitem.WorkItemRepository.getWorkDefinitions(WorkItemRepository.java:38) [jbpm-flow-builder-6.1.0.Final.jar:6.1.0.Final]
          at org.jbpm.designer.web.server.JbpmServiceRepositoryServlet.doPost(JbpmServiceRepositoryServlet.java:110) [jbpm-designer-backend-6.1.0.Final.jar:6.1.0.Final]
  </code></pre>
  
  <p>The wid file causing this error is:</p>
  
  <pre><code>import org.drools.core.process.core.datatype.impl.type.StringDataType;
  
  [ 
      [
          "name" : "CustomWorkItem",
          "description" : "Custom Work Item description",
          "parameters" : [],
          "results" : [
              "result_out" : new StringDataType(),
          ],
          "displayName" : "Custom Work Item",
          "icon" : "defaultservicenodeicon.png",
          "category" : "Service",
          "defaultHandler" : "com.example.CustomWorkItemHandler",
          "dependencies" : []
      ]
  ]
  </code></pre>