final Client client = (Client) bob;
client.setName(newName);
client.setDescription(newName);
client.setSearchKey(newName);
} else if (bob instanceof Role) {
final Role role = (Role) bob;
if (role.getName().indexOf(originalName) == -1) {
role.setName(getNewName() + "_" + role.getName());
} else {
role.setName(replace(role.getName(), originalName));
}
} else if (bob instanceof User) {
final User user = (User) bob;
if (user.getUsername() == null) {
return;