title: Polymorphism in a Cucumber-jvm Given Step
body: <p>I'm trying to write some steps in Cucumber-jvm and I've got a step that is approximately like
  the following:</p>
  
  <pre><code>@Given("I am a (regular|admin|guest) user")
   public void setUser(String userType){
       if("regular".equals(userType))
           setUserType(REGULAR);
       if("admin".equals(userType))
           setUserType(ADMIN);
       if("guest".equals(userType))
           setUserType(GUEST);
  }
  </code></pre>
  
  <p>Is there a better way of writing such a step, to make it polymorphic?</p>