title: Grails: how to programatically bind command object data to domain object in service?
body: <p>I have a command object that I want to convert into a domain object.</p>
  
  <p>However, the object I want to convert the command object into may be one of two domain classes (they're both derived classes), and I need to do it in a service (which is where, based on other data, I decide which type of object it should be bound to).  Is this possible and what's the best way to do this?  <code>bindData()</code> only exists in a controller.</p>
  
  <p>Do I just have to manually map command object parameters to the appropriate domain object properties?  Or is there a faster/better way?</p>