public void setNameVisible(boolean visible) {
        getProperties().put(NAME_VISIBLE_PROPERTY, String.valueOf(visible));
    }
Sets if name is visible to everyone or not.

@param visible true if name is visible, false if not.
xmppserver/src/main/java/org/jivesoftware/openfire/user/User.java