if (vertex.dagVertexGroups != null && !vertex.dagVertexGroups.isEmpty()) {
List<GroupInputSpec> groupSpecList = Lists.newLinkedList();
for (VertexGroupInfo groupInfo : vertex.dagVertexGroups.values()) {
if (groupInfo.edgeMergedInputs.containsKey(vertex.getName())) {
InputDescriptor mergedInput = groupInfo.edgeMergedInputs.get(vertex.getName());
groupSpecList.add(new GroupInputSpec(groupInfo.groupName,
Lists.newLinkedList(groupInfo.groupMembers), mergedInput));
}
}
if (!groupSpecList.isEmpty()) {
vertex.groupInputSpecList = groupSpecList;