Consider next scenario:

```
void foo(Map<String, String> params) {
    String myValue = params.get("myKey");
}

void bar(Map<String, String> params) {
    String myValue = params.get("myKey");
}

// ... and so on

```

I would like to define *myKey* as a private static final variable:

```
private static final String MY_KEY = "myKey";

```

And then use it:

```
void foo(Map<String, String> params) {
    String myValue = params.get(MY_KEY);
}

```

Is it a good practice or can we do better?