private ResourceInstance createGroupResource(String groupName) {
    return createResource(Resource.Type.Group,
        Collections.singletonMap(Resource.Type.Group, groupName));
  }
Create a group resource instance.

@param groupName group name

@return a group resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/groups/GroupService.java