title: Alfresco, query with dynamic values
body: <p>I have a <code>Map</code> with different values:</p>
  
  <pre><code>    props = new HashMap&lt;String, Object&gt;();
      props.put("cmis:objectTypeId", "D:ruc:PLICO");
      props.put("cmis:name", "PLICO_1.pdf");
      props.put("cmis:description", "Descr");
      props.put("ruc:doc_surname", "Rossi");
      props.put("ruc:doc_name", "Mario");
  </code></pre>
  
  <p>I want to do a query (<a href="http://chemistry.apache.org/java/0.9.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/QueryStatement.html" rel="nofollow">QueryStatement</a> or other) that dynamically reads this parameters (some of them can be missing) and build <code>QueryStatement</code>.
  Does it exist an easy way to generate the query <code>String</code> for <code>QueryStatement</code>? Or do I should iterate my <code>Map</code> to build a <code>String</code> containing all the parameters and values in my query?</p>