Why run a control style if you are going to ignore it?
I pretty much agree with @Tomasz Nurkiewicz's answer, except that I will definitely document it.
The value of final String id may be obvious. You. Now. The getName method getName also be obvious - for now.
When I look at him, I have no idea what he is doing or what kind of "identifier" I need to convey. Does it get the full legal username? What name did they enter? Their [last name, first name]? What type of id String do I need to pass? Internal ID / Application Code? You have no javadoc for what the method itself does.
public static void getName(final String id) { ... }
I would declare this as a public static String getName(...) because how can you get a name if it returns nothing? If it does something else, for example, put the name somewhere, you can get it later, then (1) it should not be called "getName", and (2) you definitely need to document this fact in your javadoc.
source share