title: Converter class getAsObject pass parameter to Service class which accepts object
body: <p>I have question regarding Converter class <code>getAsObject</code> method</p>
  
  <p>I have a service called <code>EmployeeService employeeService</code> </p>
  
  <pre><code>public List&lt;Employees&gt; getEmployees(Employees employees);
  </code></pre>
  
  <p>If I want to call the above method from getAsObject of Converter class which as arguments</p>
  
  <pre><code>public Object getAsObject(FacesContext facesContext, UIComponent component,
              String value)
      employeeService.getEmployees(&lt;?&gt;)
  </code></pre>
  
  <p>How do I pass <code>employees</code> object to <code>getEmployees</code> method from <code>getAsObject</code>?</p>
  
  <p>Any help is highly appreciated.</p>
  
  <p>Update 1</p>
  
  <pre><code>@Entity
  public class Employees implements Serializable {
  
  private String employeeNumber;
  private String employeeName;
  </code></pre>