I want to use the method *execute()* of the following class:

```
public class Parser {
    @Header("header1")
    private String attribute1;

    @Header("header2")
    private String attribute2;

    @Header("header3")
    private String attribute3;

    @Header("header4")
    private String attribute4;

    public String execute(String headerValue) {
        //Execute
    }
}

```

What I want this method to achieve is matching the *headerValue* parameter with one in the list of *@Header* annotations, and returning the value of the respective attribute. For example, if I call *execute("header3")*, it should return the value of *attribute3*

How can I achieve this? Or is it a better way to code this requirement?