return new NumberedItemCollection<ProjectData>(root, ProjectData.newBuilder(), ProjectData.getDescriptor()
.findFieldByNumber(ProjectData.ID_FIELD_NUMBER));
}
public NumberedItemCollection<GroupData> getGroups(long domainId) {
StateNode groups = stateStore.getRoot("groups");
StateNode domain = groups.child(Long.toHexString(domainId));
return new NumberedItemCollection<GroupData>(domain, GroupData.newBuilder(), ProjectData.getDescriptor()
.findFieldByNumber(GroupData.ID_FIELD_NUMBER));
}