code: public void setParentId(String parentId)
     {
        this.parentId = (parentId == null || parentId.equals("") ? null : parentId);
        setGroupName(groupName);
     }
docs: Sets new parenId and refresh groupId.