Java Cucumber: Specify target tags in the definition steps
<p>Is it possible to specify a (or several) target tags in the definition steps?</p>

<p>For instance, I have two features:</p>

<pre><code>feature1.feature
@feature1
...
And I click on "save" button
...

feature2.feature
@feature2
...
And I click on "save" button
...
</code></pre>

<p>Both features are using the same glue files (they have a lot of common steps).</p>

<p>And I need that these steps have a different implementation for the rule:</p>

<pre><code>@And("^I click on \"([^\"]*)\" link$")
</code></pre>

<p>How can i do this? Is there any annotation to specify that a definition step is used only for a (or several) tags? I would to do something like this:</p>

<pre><code>@And("^I click on \"([^\"]*)\" link$")
@Something("@feature1")
public void i_click_on_link_feature1(String option) {
    ...
}

@And("^I click on \"([^\"]*)\" link$")
@Something("@feature2")
public void i_click_on_link_feature2(String option) {
    ...
}
</code></pre>