title: How to convert from a ParameterMap of HttpServletRequest to a bean in Java
body: <p>I have a string of parameters in URL and I want to convert this string into a bean object.
  For example, I have the URL <code>www.domain.com/book?authorFirstName=Dostoevsky</code> and I want to get a bean, a capsule for criterias:</p>
  
  <pre><code>public class BookCriterias {
      ...
      public String getAuthorFirstName() {...}
      public void setAuthorFirstName(String fName) {...}
      public String getAuthorLastName() {...}
      public void setAuthorLastName(String lName) {...}
      public String getGenre() {...}
      public void setGenre(String genre) {...}
  }
  </code></pre>
  
  <p>Does some ready-to-use library exist for this purpose?</p>