title: Cloud Endpoint parameter should not be named
body: <p>I want send a <code>HashMap&lt;String, String&gt;</code> from JS application to my Google App. I created a <code>HashMapContainer</code> class such as in : <a href="https://stackoverflow.com/questions/14763061/cloud-endpoints-collection-parameter">Cloud Endpoints Collection Parameter</a>.<br></p>
  
  <p>The Endpoint method is defined like this : </p>
  
  <pre><code>public Entity myMethod(
          @Named('param1') String param1, 
          @Nullable @Named('param2') HashMapContainer param2) {
      //...
  }
  </code></pre>
  
  <p>When I run the API generation this error happens :</p>
  
  <pre><code>com.google.api.server.spi.config.validation.ApiConfigInvalidException: 
      Resource type 'class com.mason.server.entity.HashMapContainer' 
      in method 'endpoint.myMethod' should not be named.
  </code></pre>
  
  <p>Therefore, I remove the <code>@Named</code> annotation. The API is generated but obviously, I do not receive the parameter send by the JS application. My JavaScript is like this :</p>
  
  <pre><code>function doTransaction() {
      var req = gapi.client.myApi.endpoint.myMethod({
          'param1': 'FOO',
          'param2': {
              'value1':'foofoo',
              'value2':'barbar',
              'value3':'foobar'
          }
      });
      req.execute(function(data) {
          console.log(data);
      });
  }
  </code></pre>
  
  <p>How I can get the <code>param2</code> if I'm not allowed to use the <code>@Named</code> annotation ?<br>
  Maybe my JavaScript is wrong?</p>