OUCH !!
A much better way of doing that is to use the new AddressGenerator in JGroups (2.12.0), which allows *you* to generate all JGroups addresses. Not a good idea though if you use RELAY...
Yes, you could use the logical name, but then you have to make sure that nobody changes it during the lifetime of a member (which should be the case).