while((obj = Group.getRoot().findObject(newName, true)) != null)
boolean renameNeeded = false; while ((obj=Group.getRoot().findObject(newName, true))!=null)
public boolean moveToGroup(String group){	String currentParent = Group.substractParentName(getName());	if(group.equalsIgnoreCase(currentParent))		return false;		String oldName = getName();	String newName;	if (group.equals(nullString))		newName = Group.substractObjectName(getName());	else		newName = group + Constants.GROUP_SEPARATOR + Group.substractObjectName(getName());	// object with new name already exists, add suffix // !!!	Object obj;	while((obj = Group.getRoot().findObject(newName, true)) != null)	{		if(obj == this)	// it's me :) already moved, fix data		{			name = newName;			return true;		}		else			newName = StringUtils.incrementName(newName, Constants.MOVE_SUFFIX);					return rename(newName);	}		getParent().removeObject(Group.substractObjectName(getName()));	setParent(null);	Group.getRoot().addSubObject(newName, this, true);	name = newName;	unconditionalValidation();	return true;}