The conditional here is superfluous, I think?

Also if we're returning nulls, consider using Optional<String> instead. Same comment goes for all the accessors here.