Check whether the system/group is already belong to the group/system

Bug: 917745
Change-Id: I17dd8e2d9bbb0050d7c631575375e4e6c863acad
Merge "Check whether the system/group is already belong to the group/system" into develop