title: Invoke method with varargs in EL throws java.lang.IllegalArgumentException: wrong number of arguments
body: <p>I'm using JSF 2.</p>
  
  <p>I have a method that checks for matching values from a list of values:</p>
  
  <pre><code>@ManagedBean(name="webUtilMB")
  @ApplicationScoped
  public class WebUtilManagedBean implements Serializable{ ...
  
  public static boolean isValueIn(Integer value, Integer ... options){
      if(value != null){
          for(Integer option: options){
              if(option.equals(value)){
                  return true;
              }
          }
      }
      return false;
  }
  
  
  ...
  }
  </code></pre>
  
  <p>To call this method in EL I tried:</p>
  
  <pre><code>#{webUtilMB.isValueIn(OtherBean.category.id, 2,3,5)}
  </code></pre>
  
  <p>But it gave me a:</p>
  
  <blockquote>
    <p>SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (http-localhost/127.0.0.1:8080-5) java.lang.IllegalArgumentException: wrong number of arguments</p>
  </blockquote>
  
  <p>Is there a way to execute such a method from EL?</p>