nus-yam/ex-repair huggingface dataset:
Program: 14075
Project: 14075
Buggy source:
public static Set<String> getGroupNamesForUser(ServiceConfiguration configuration,String userName,String effectiveUserId) throws Exception {
  Set<String> groupSet=Sets.newLinkedHashSet();
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups) {
    ListGroupsForUserType listGroupsForUserType=MessageHelper.createMessage(ListGroupsForUserType.class,effectiveUserId);
    listGroupsForUserType.setUserName(userName);
    if (groupMarker != null) {
      listGroupsForUserType.setMarker(groupMarker);
    }
    ListGroupsForUserResponseType listGroupsForUserResponseType=AsyncRequests.<ListGroupsForUserType,ListGroupsForUserResponseType>sendSync(configuration,listGroupsForUserType);
    if (listGroupsForUserResponseType.getListGroupsForUserResult().getIsTruncated() == Boolean.TRUE) {
      groupMarker=listGroupsForUserResponseType.getListGroupsForUserResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsForUserResponseType.getListGroupsForUserResult().getGroups() != null && listGroupsForUserResponseType.getListGroupsForUserResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsForUserResponseType.getListGroupsForUserResult().getGroups().getMemberList()) {
        groupSet.add(groupType.getGroupName());
      }
    }
  }
  return groupSet;
}

Fixed version (ground truth):
public static Set<String> getGroupNamesForUser(ServiceConfiguration configuration,String userName,String effectiveUserId) throws Exception {
  Set<String> groupSet=Sets.newLinkedHashSet();
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups) {
    ListGroupsForUserType listGroupsForUserType=MessageHelper.createMessage(ListGroupsForUserType.class,effectiveUserId);
    listGroupsForUserType.setUserName(userName);
    if (groupMarker != null) {
      listGroupsForUserType.setMarker(groupMarker);
    }
    ListGroupsForUserResponseType listGroupsForUserResponseType=AsyncRequests.<ListGroupsForUserType,ListGroupsForUserResponseType>sendSync(configuration,listGroupsForUserType);
    if (Boolean.TRUE.equals(listGroupsForUserResponseType.getListGroupsForUserResult().getIsTruncated())) {
      groupMarker=listGroupsForUserResponseType.getListGroupsForUserResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsForUserResponseType.getListGroupsForUserResult().getGroups() != null && listGroupsForUserResponseType.getListGroupsForUserResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsForUserResponseType.getListGroupsForUserResult().getGroups().getMemberList()) {
        groupSet.add(groupType.getGroupName());
      }
    }
  }
  return groupSet;
}
Program: 14076
Project: 14076
Buggy source:
public static UserType getUser(ServiceConfiguration configuration,String userName,String effectiveUserId) throws Exception {
  UserType retVal=null;
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers && retVal == null) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (listUsersResponseType.getListUsersResult().getIsTruncated() == Boolean.TRUE) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        if (userType.getUserName().equals(userName)) {
          retVal=userType;
          break;
        }
      }
    }
  }
  return retVal;
}

Fixed version (ground truth):
public static UserType getUser(ServiceConfiguration configuration,String userName,String effectiveUserId) throws Exception {
  UserType retVal=null;
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers && retVal == null) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (Boolean.TRUE.equals(listUsersResponseType.getListUsersResult().getIsTruncated())) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        if (userType.getUserName().equals(userName)) {
          retVal=userType;
          break;
        }
      }
    }
  }
  return retVal;
}
Program: 14077
Project: 14077
Buggy source:
private static RoleType getRole(ServiceConfiguration configuration,String roleName,String effectiveUserId) throws Exception {
  RoleType retVal=null;
  boolean seenAllRoles=false;
  String RoleMarker=null;
  while (!seenAllRoles && retVal == null) {
    ListRolesType listRolesType=MessageHelper.createMessage(ListRolesType.class,effectiveUserId);
    if (RoleMarker != null) {
      listRolesType.setMarker(RoleMarker);
    }
    ListRolesResponseType listRolesResponseType=AsyncRequests.<ListRolesType,ListRolesResponseType>sendSync(configuration,listRolesType);
    if (listRolesResponseType.getListRolesResult().getIsTruncated() == Boolean.TRUE) {
      RoleMarker=listRolesResponseType.getListRolesResult().getMarker();
    }
 else {
      seenAllRoles=true;
    }
    if (listRolesResponseType.getListRolesResult().getRoles() != null && listRolesResponseType.getListRolesResult().getRoles().getMember() != null) {
      for (      RoleType roleType : listRolesResponseType.getListRolesResult().getRoles().getMember()) {
        if (roleType.getRoleName().equals(roleName)) {
          retVal=roleType;
          break;
        }
      }
    }
  }
  return retVal;
}

Fixed version (ground truth):
private static RoleType getRole(ServiceConfiguration configuration,String roleName,String effectiveUserId) throws Exception {
  RoleType retVal=null;
  boolean seenAllRoles=false;
  String RoleMarker=null;
  while (!seenAllRoles && retVal == null) {
    ListRolesType listRolesType=MessageHelper.createMessage(ListRolesType.class,effectiveUserId);
    if (RoleMarker != null) {
      listRolesType.setMarker(RoleMarker);
    }
    ListRolesResponseType listRolesResponseType=AsyncRequests.<ListRolesType,ListRolesResponseType>sendSync(configuration,listRolesType);
    if (Boolean.TRUE.equals(listRolesResponseType.getListRolesResult().getIsTruncated())) {
      RoleMarker=listRolesResponseType.getListRolesResult().getMarker();
    }
 else {
      seenAllRoles=true;
    }
    if (listRolesResponseType.getListRolesResult().getRoles() != null && listRolesResponseType.getListRolesResult().getRoles().getMember() != null) {
      for (      RoleType roleType : listRolesResponseType.getListRolesResult().getRoles().getMember()) {
        if (roleType.getRoleName().equals(roleName)) {
          retVal=roleType;
          break;
        }
      }
    }
  }
  return retVal;
}
Program: 14079
Project: 14079
Buggy source:
public static List<String> getExistingGroups(ServiceConfiguration configuration,Set<String> passedInGroups,String effectiveUserId) throws Exception {
  List<String> realGroups=Lists.newArrayList();
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups) {
    ListGroupsType listGroupsType=MessageHelper.createMessage(ListGroupsType.class,effectiveUserId);
    if (groupMarker != null) {
      listGroupsType.setMarker(groupMarker);
    }
    ListGroupsResponseType listGroupsResponseType=AsyncRequests.<ListGroupsType,ListGroupsResponseType>sendSync(configuration,listGroupsType);
    if (listGroupsResponseType.getListGroupsResult().getIsTruncated() == Boolean.TRUE) {
      groupMarker=listGroupsResponseType.getListGroupsResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsResponseType.getListGroupsResult().getGroups() != null && listGroupsResponseType.getListGroupsResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsResponseType.getListGroupsResult().getGroups().getMemberList()) {
        if (passedInGroups.contains(groupType.getGroupName())) {
          realGroups.add(groupType.getGroupName());
        }
      }
    }
  }
  return realGroups;
}

Fixed version (ground truth):
public static List<String> getExistingGroups(ServiceConfiguration configuration,Set<String> passedInGroups,String effectiveUserId) throws Exception {
  List<String> realGroups=Lists.newArrayList();
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups) {
    ListGroupsType listGroupsType=MessageHelper.createMessage(ListGroupsType.class,effectiveUserId);
    if (groupMarker != null) {
      listGroupsType.setMarker(groupMarker);
    }
    ListGroupsResponseType listGroupsResponseType=AsyncRequests.<ListGroupsType,ListGroupsResponseType>sendSync(configuration,listGroupsType);
    if (Boolean.TRUE.equals(listGroupsResponseType.getListGroupsResult().getIsTruncated())) {
      groupMarker=listGroupsResponseType.getListGroupsResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsResponseType.getListGroupsResult().getGroups() != null && listGroupsResponseType.getListGroupsResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsResponseType.getListGroupsResult().getGroups().getMemberList()) {
        if (passedInGroups.contains(groupType.getGroupName())) {
          realGroups.add(groupType.getGroupName());
        }
      }
    }
  }
  return realGroups;
}
Program: 14080
Project: 14080
Buggy source:
public static Set<String> getUserNamesForGroup(ServiceConfiguration configuration,String groupName,String effectiveUserId) throws Exception {
  Set<String> users=Sets.newLinkedHashSet();
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers) {
    GetGroupType getGroupType=MessageHelper.createMessage(GetGroupType.class,effectiveUserId);
    getGroupType.setGroupName(groupName);
    if (userMarker != null) {
      getGroupType.setMarker(userMarker);
    }
    GetGroupResponseType getGroupResponseType=AsyncRequests.<GetGroupType,GetGroupResponseType>sendSync(configuration,getGroupType);
    if (getGroupResponseType.getGetGroupResult().getIsTruncated() == Boolean.TRUE) {
      userMarker=getGroupResponseType.getGetGroupResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (getGroupResponseType.getGetGroupResult() != null && getGroupResponseType.getGetGroupResult().getUsers().getMemberList() != null) {
      for (      UserType userType : getGroupResponseType.getGetGroupResult().getUsers().getMemberList()) {
        users.add(userType.getUserName());
      }
    }
  }
  return users;
}

Fixed version (ground truth):
public static Set<String> getUserNamesForGroup(ServiceConfiguration configuration,String groupName,String effectiveUserId) throws Exception {
  Set<String> users=Sets.newLinkedHashSet();
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers) {
    GetGroupType getGroupType=MessageHelper.createMessage(GetGroupType.class,effectiveUserId);
    getGroupType.setGroupName(groupName);
    if (userMarker != null) {
      getGroupType.setMarker(userMarker);
    }
    GetGroupResponseType getGroupResponseType=AsyncRequests.<GetGroupType,GetGroupResponseType>sendSync(configuration,getGroupType);
    if (Boolean.TRUE.equals(getGroupResponseType.getGetGroupResult().getIsTruncated())) {
      userMarker=getGroupResponseType.getGetGroupResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (getGroupResponseType.getGetGroupResult() != null && getGroupResponseType.getGetGroupResult().getUsers().getMemberList() != null) {
      for (      UserType userType : getGroupResponseType.getGetGroupResult().getUsers().getMemberList()) {
        users.add(userType.getUserName());
      }
    }
  }
  return users;
}
Program: 14081
Project: 14081
Buggy source:
public static List<String> getExistingUsers(ServiceConfiguration configuration,Set<String> passedInUsers,String effectiveUserId) throws Exception {
  List<String> realUsers=Lists.newArrayList();
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (listUsersResponseType.getListUsersResult().getIsTruncated() == Boolean.TRUE) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        if (passedInUsers.contains(userType.getUserName())) {
          realUsers.add(userType.getUserName());
        }
      }
    }
  }
  return realUsers;
}

Fixed version (ground truth):
public static List<String> getExistingUsers(ServiceConfiguration configuration,Set<String> passedInUsers,String effectiveUserId) throws Exception {
  List<String> realUsers=Lists.newArrayList();
  boolean seenAllUsers=false;
  String userMarker=null;
  while (!seenAllUsers) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (Boolean.TRUE.equals(listUsersResponseType.getListUsersResult().getIsTruncated())) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        if (passedInUsers.contains(userType.getUserName())) {
          realUsers.add(userType.getUserName());
        }
      }
    }
  }
  return realUsers;
}
Program: 14082
Project: 14082
Buggy source:
public static GroupType getGroup(ServiceConfiguration configuration,String groupName,String effectiveUserId) throws Exception {
  GroupType retVal=null;
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups && retVal == null) {
    ListGroupsType listGroupsType=MessageHelper.createMessage(ListGroupsType.class,effectiveUserId);
    if (groupMarker != null) {
      listGroupsType.setMarker(groupMarker);
    }
    ListGroupsResponseType listGroupsResponseType=AsyncRequests.<ListGroupsType,ListGroupsResponseType>sendSync(configuration,listGroupsType);
    if (listGroupsResponseType.getListGroupsResult().getIsTruncated() == Boolean.TRUE) {
      groupMarker=listGroupsResponseType.getListGroupsResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsResponseType.getListGroupsResult().getGroups() != null && listGroupsResponseType.getListGroupsResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsResponseType.getListGroupsResult().getGroups().getMemberList()) {
        if (groupType.getGroupName().equals(groupName)) {
          retVal=groupType;
          break;
        }
      }
    }
  }
  return retVal;
}

Fixed version (ground truth):
public static GroupType getGroup(ServiceConfiguration configuration,String groupName,String effectiveUserId) throws Exception {
  GroupType retVal=null;
  boolean seenAllGroups=false;
  String groupMarker=null;
  while (!seenAllGroups && retVal == null) {
    ListGroupsType listGroupsType=MessageHelper.createMessage(ListGroupsType.class,effectiveUserId);
    if (groupMarker != null) {
      listGroupsType.setMarker(groupMarker);
    }
    ListGroupsResponseType listGroupsResponseType=AsyncRequests.<ListGroupsType,ListGroupsResponseType>sendSync(configuration,listGroupsType);
    if (Boolean.TRUE.equals(listGroupsResponseType.getListGroupsResult().getIsTruncated())) {
      groupMarker=listGroupsResponseType.getListGroupsResult().getMarker();
    }
 else {
      seenAllGroups=true;
    }
    if (listGroupsResponseType.getListGroupsResult().getGroups() != null && listGroupsResponseType.getListGroupsResult().getGroups().getMemberList() != null) {
      for (      GroupType groupType : listGroupsResponseType.getListGroupsResult().getGroups().getMemberList()) {
        if (groupType.getGroupName().equals(groupName)) {
          retVal=groupType;
          break;
        }
      }
    }
  }
  return retVal;
}
Program: 14083
Project: 14083
Buggy source:
public static AccessKeyMetadataType getAccessKey(ServiceConfiguration configuration,String accessKeyId,String userName,String effectiveUserId) throws Exception {
  AccessKeyMetadataType retVal=null;
  boolean seenAllAccessKeys=false;
  String accessKeyMarker=null;
  while (!seenAllAccessKeys && (retVal == null)) {
    ListAccessKeysType listAccessKeysType=MessageHelper.createMessage(ListAccessKeysType.class,effectiveUserId);
    listAccessKeysType.setUserName(userName);
    if (accessKeyMarker != null) {
      listAccessKeysType.setMarker(accessKeyMarker);
    }
    ListAccessKeysResponseType listAccessKeysResponseType=AsyncRequests.<ListAccessKeysType,ListAccessKeysResponseType>sendSync(configuration,listAccessKeysType);
    if (listAccessKeysResponseType.getListAccessKeysResult().getIsTruncated() == Boolean.TRUE) {
      accessKeyMarker=listAccessKeysResponseType.getListAccessKeysResult().getMarker();
    }
 else {
      seenAllAccessKeys=true;
    }
    if (listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata() != null && listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata().getMemberList() != null) {
      for (      AccessKeyMetadataType accessKeyMetadataType : listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata().getMemberList()) {
        if (accessKeyMetadataType.getAccessKeyId().equals(accessKeyId)) {
          retVal=accessKeyMetadataType;
          break;
        }
      }
    }
  }
  return retVal;
}

Fixed version (ground truth):
public static AccessKeyMetadataType getAccessKey(ServiceConfiguration configuration,String accessKeyId,String userName,String effectiveUserId) throws Exception {
  AccessKeyMetadataType retVal=null;
  boolean seenAllAccessKeys=false;
  String accessKeyMarker=null;
  while (!seenAllAccessKeys && (retVal == null)) {
    ListAccessKeysType listAccessKeysType=MessageHelper.createMessage(ListAccessKeysType.class,effectiveUserId);
    listAccessKeysType.setUserName(userName);
    if (accessKeyMarker != null) {
      listAccessKeysType.setMarker(accessKeyMarker);
    }
    ListAccessKeysResponseType listAccessKeysResponseType=AsyncRequests.<ListAccessKeysType,ListAccessKeysResponseType>sendSync(configuration,listAccessKeysType);
    if (Boolean.TRUE.equals(listAccessKeysResponseType.getListAccessKeysResult().getIsTruncated())) {
      accessKeyMarker=listAccessKeysResponseType.getListAccessKeysResult().getMarker();
    }
 else {
      seenAllAccessKeys=true;
    }
    if (listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata() != null && listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata().getMemberList() != null) {
      for (      AccessKeyMetadataType accessKeyMetadataType : listAccessKeysResponseType.getListAccessKeysResult().getAccessKeyMetadata().getMemberList()) {
        if (accessKeyMetadataType.getAccessKeyId().equals(accessKeyId)) {
          retVal=accessKeyMetadataType;
          break;
        }
      }
    }
  }
  return retVal;
}
Program: 14084
Project: 14084
Buggy source:
public static List<String> getExistingRoles(ServiceConfiguration configuration,Set<String> passedInRoles,String effectiveUserId) throws Exception {
  List<String> realRoles=Lists.newArrayList();
  boolean seenAllRoles=false;
  String roleMarker=null;
  while (!seenAllRoles) {
    ListRolesType listRolesType=MessageHelper.createMessage(ListRolesType.class,effectiveUserId);
    if (roleMarker != null) {
      listRolesType.setMarker(roleMarker);
    }
    ListRolesResponseType listRolesResponseType=AsyncRequests.<ListRolesType,ListRolesResponseType>sendSync(configuration,listRolesType);
    if (listRolesResponseType.getListRolesResult().getIsTruncated() == Boolean.TRUE) {
      roleMarker=listRolesResponseType.getListRolesResult().getMarker();
    }
 else {
      seenAllRoles=true;
    }
    if (listRolesResponseType.getListRolesResult().getRoles() != null && listRolesResponseType.getListRolesResult().getRoles().getMember() != null) {
      for (      RoleType roleType : listRolesResponseType.getListRolesResult().getRoles().getMember()) {
        if (passedInRoles.contains(roleType.getRoleName())) {
          realRoles.add(roleType.getRoleName());
        }
      }
    }
  }
  return realRoles;
}

Fixed version (ground truth):
public static List<String> getExistingRoles(ServiceConfiguration configuration,Set<String> passedInRoles,String effectiveUserId) throws Exception {
  List<String> realRoles=Lists.newArrayList();
  boolean seenAllRoles=false;
  String roleMarker=null;
  while (!seenAllRoles) {
    ListRolesType listRolesType=MessageHelper.createMessage(ListRolesType.class,effectiveUserId);
    if (roleMarker != null) {
      listRolesType.setMarker(roleMarker);
    }
    ListRolesResponseType listRolesResponseType=AsyncRequests.<ListRolesType,ListRolesResponseType>sendSync(configuration,listRolesType);
    if (Boolean.TRUE.equals(listRolesResponseType.getListRolesResult().getIsTruncated())) {
      roleMarker=listRolesResponseType.getListRolesResult().getMarker();
    }
 else {
      seenAllRoles=true;
    }
    if (listRolesResponseType.getListRolesResult().getRoles() != null && listRolesResponseType.getListRolesResult().getRoles().getMember() != null) {
      for (      RoleType roleType : listRolesResponseType.getListRolesResult().getRoles().getMember()) {
        if (passedInRoles.contains(roleType.getRoleName())) {
          realRoles.add(roleType.getRoleName());
        }
      }
    }
  }
  return realRoles;
}
Program: 14085
Project: 14085
Buggy source:
public static Collection<String> nonexistantUsers(ServiceConfiguration configuration,Collection<String> userNames,String effectiveUserId) throws Exception {
  boolean seenAllUsers=false;
  List<String> currentUsers=Lists.newArrayList();
  String userMarker=null;
  while (!seenAllUsers) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (listUsersResponseType.getListUsersResult().getIsTruncated() == Boolean.TRUE) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        currentUsers.add(userType.getUserName());
      }
    }
  }
  List<String> nonexistantUsers=Lists.newArrayList();
  for (  String user : userNames) {
    if (!currentUsers.contains(user)) {
      nonexistantUsers.add(user);
    }
  }
  return nonexistantUsers;
}

Fixed version (ground truth):
public static Collection<String> nonexistantUsers(ServiceConfiguration configuration,Collection<String> userNames,String effectiveUserId) throws Exception {
  boolean seenAllUsers=false;
  List<String> currentUsers=Lists.newArrayList();
  String userMarker=null;
  while (!seenAllUsers) {
    ListUsersType listUsersType=MessageHelper.createMessage(ListUsersType.class,effectiveUserId);
    if (userMarker != null) {
      listUsersType.setMarker(userMarker);
    }
    ListUsersResponseType listUsersResponseType=AsyncRequests.<ListUsersType,ListUsersResponseType>sendSync(configuration,listUsersType);
    if (Boolean.TRUE.equals(listUsersResponseType.getListUsersResult().getIsTruncated())) {
      userMarker=listUsersResponseType.getListUsersResult().getMarker();
    }
 else {
      seenAllUsers=true;
    }
    if (listUsersResponseType.getListUsersResult().getUsers() != null && listUsersResponseType.getListUsersResult().getUsers().getMemberList() != null) {
      for (      UserType userType : listUsersResponseType.getListUsersResult().getUsers().getMemberList()) {
        currentUsers.add(userType.getUserName());
      }
    }
  }
  List<String> nonexistantUsers=Lists.newArrayList();
  for (  String user : userNames) {
    if (!currentUsers.contains(user)) {
      nonexistantUsers.add(user);
    }
  }
  return nonexistantUsers;
}
Program: 14086
Project: 14086
Buggy source:
@Override public ResourceAction perform(ResourceAction oldResourceAction,ResourceAction newResourceAction) throws Exception {
  AWSAutoScalingAutoScalingGroupResourceAction oldAction=(AWSAutoScalingAutoScalingGroupResourceAction)oldResourceAction;
  AWSAutoScalingAutoScalingGroupResourceAction newAction=(AWSAutoScalingAutoScalingGroupResourceAction)newResourceAction;
  ServiceConfiguration configuration=Topology.lookup(AutoScaling.class);
  if (newAction.info.getUpdatePolicyJson() == null)   return newAction;
  UpdatePolicy updatePolicy=UpdatePolicy.parse(newAction.info.getUpdatePolicyJson());
  if (updatePolicy.getAutoScalingRollingUpdate() == null)   return newAction;
  RollingUpdateStateEntity rollingUpdateStateEntity=RollingUpdateStateEntityManager.getRollingUpdateStateEntity(newAction.info.getAccountId(),newAction.getStackEntity().getStackId(),newAction.info.getLogicalResourceId());
  if (rollingUpdateStateEntity.getNeedsRollbackUpdate() != Boolean.TRUE)   return newAction;
  while (rollingUpdateStateEntity.getState() != UpdateRollbackInfo.State.DONE) {
    LOG.info("String_Node_Str" + rollingUpdateStateEntity.getState());
    rollingUpdateStateEntity=(rollingUpdateStateEntity.getState().apply(newAction,configuration,updatePolicy,rollingUpdateStateEntity));
    rollingUpdateStateEntity=RollingUpdateStateEntityManager.updateRollingUpdateStateEntity(rollingUpdateStateEntity);
  }
  return newAction;
}

Fixed version (ground truth):
@Override public ResourceAction perform(ResourceAction oldResourceAction,ResourceAction newResourceAction) throws Exception {
  AWSAutoScalingAutoScalingGroupResourceAction oldAction=(AWSAutoScalingAutoScalingGroupResourceAction)oldResourceAction;
  AWSAutoScalingAutoScalingGroupResourceAction newAction=(AWSAutoScalingAutoScalingGroupResourceAction)newResourceAction;
  ServiceConfiguration configuration=Topology.lookup(AutoScaling.class);
  if (newAction.info.getUpdatePolicyJson() == null)   return newAction;
  UpdatePolicy updatePolicy=UpdatePolicy.parse(newAction.info.getUpdatePolicyJson());
  if (updatePolicy.getAutoScalingRollingUpdate() == null)   return newAction;
  RollingUpdateStateEntity rollingUpdateStateEntity=RollingUpdateStateEntityManager.getRollingUpdateStateEntity(newAction.info.getAccountId(),newAction.getStackEntity().getStackId(),newAction.info.getLogicalResourceId());
  if (!Boolean.TRUE.equals(rollingUpdateStateEntity.getNeedsRollbackUpdate()))   return newAction;
  while (rollingUpdateStateEntity.getState() != UpdateRollbackInfo.State.DONE) {
    LOG.info("String_Node_Str" + rollingUpdateStateEntity.getState());
    rollingUpdateStateEntity=(rollingUpdateStateEntity.getState().apply(newAction,configuration,updatePolicy,rollingUpdateStateEntity));
    rollingUpdateStateEntity=RollingUpdateStateEntityManager.updateRollingUpdateStateEntity(rollingUpdateStateEntity);
  }
  return newAction;
}
Program: 14087
Project: 14087
Buggy source:
private static boolean groupDoesNotExist(ServiceConfiguration configuration,AWSAutoScalingAutoScalingGroupResourceAction action) throws Exception {
  if (action.info.getCreatedEnoughToDelete() != Boolean.TRUE)   return true;
  DescribeAutoScalingGroupsType describeAutoScalingGroupsType=MessageHelper.createMessage(DescribeAutoScalingGroupsType.class,action.info.getEffectiveUserId());
  AutoScalingGroupNames autoScalingGroupNames=new AutoScalingGroupNames();
  ArrayList<String> member=Lists.newArrayList(action.info.getPhysicalResourceId());
  autoScalingGroupNames.setMember(member);
  describeAutoScalingGroupsType.setAutoScalingGroupNames(autoScalingGroupNames);
  DescribeAutoScalingGroupsResponseType describeAutoScalingGroupsResponseType=AsyncRequests.<DescribeAutoScalingGroupsType,DescribeAutoScalingGroupsResponseType>sendSync(configuration,describeAutoScalingGroupsType);
  if (action.doesGroupNotExist(describeAutoScalingGroupsResponseType)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
private static boolean groupDoesNotExist(ServiceConfiguration configuration,AWSAutoScalingAutoScalingGroupResourceAction action) throws Exception {
  if (!Boolean.TRUE.equals(action.info.getCreatedEnoughToDelete()))   return true;
  DescribeAutoScalingGroupsType describeAutoScalingGroupsType=MessageHelper.createMessage(DescribeAutoScalingGroupsType.class,action.info.getEffectiveUserId());
  AutoScalingGroupNames autoScalingGroupNames=new AutoScalingGroupNames();
  ArrayList<String> member=Lists.newArrayList(action.info.getPhysicalResourceId());
  autoScalingGroupNames.setMember(member);
  describeAutoScalingGroupsType.setAutoScalingGroupNames(autoScalingGroupNames);
  DescribeAutoScalingGroupsResponseType describeAutoScalingGroupsResponseType=AsyncRequests.<DescribeAutoScalingGroupsType,DescribeAutoScalingGroupsResponseType>sendSync(configuration,describeAutoScalingGroupsType);
  if (action.doesGroupNotExist(describeAutoScalingGroupsResponseType)) {
    return true;
  }
  return false;
}
Program: 14088
Project: 14088
Buggy source:
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSAutoScalingLaunchConfigurationResourceAction action=(AWSAutoScalingLaunchConfigurationResourceAction)resourceAction;
  ServiceConfiguration configuration=Topology.lookup(AutoScaling.class);
  if (action.info.getCreatedEnoughToDelete() != Boolean.TRUE)   return action;
  DeleteLaunchConfigurationType deleteLaunchConfigurationType=MessageHelper.createMessage(DeleteLaunchConfigurationType.class,action.info.getEffectiveUserId());
  deleteLaunchConfigurationType.setLaunchConfigurationName(action.info.getPhysicalResourceId());
  AsyncRequests.<DeleteLaunchConfigurationType,DeleteLaunchConfigurationResponseType>sendSync(configuration,deleteLaunchConfigurationType);
  return action;
}

Fixed version (ground truth):
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSAutoScalingLaunchConfigurationResourceAction action=(AWSAutoScalingLaunchConfigurationResourceAction)resourceAction;
  ServiceConfiguration configuration=Topology.lookup(AutoScaling.class);
  if (!Boolean.TRUE.equals(action.info.getCreatedEnoughToDelete()))   return action;
  DeleteLaunchConfigurationType deleteLaunchConfigurationType=MessageHelper.createMessage(DeleteLaunchConfigurationType.class,action.info.getEffectiveUserId());
  deleteLaunchConfigurationType.setLaunchConfigurationName(action.info.getPhysicalResourceId());
  AsyncRequests.<DeleteLaunchConfigurationType,DeleteLaunchConfigurationResponseType>sendSync(configuration,deleteLaunchConfigurationType);
  return action;
}
Program: 14089
Project: 14089
Buggy source:
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSCloudFormationWaitConditionHandleResourceAction action=(AWSCloudFormationWaitConditionHandleResourceAction)resourceAction;
  if (action.info.getCreatedEnoughToDelete() != Boolean.TRUE)   return action;
  try (final EucaS3Client s3c=EucaS3ClientFactory.getEucaS3Client(new CloudFormationAWSCredentialsProvider())){
    ObjectNode objectNode=(ObjectNode)JsonHelper.getJsonNodeFromString(action.info.getEucaParts());
    if (!"String_Node_Str".equals(objectNode.get("String_Node_Str").asText()))     throw new Exception("String_Node_Str");
    String bucketName=objectNode.get("String_Node_Str").asText();
    String keyName=objectNode.get("String_Node_Str").asText();
    if (!s3c.doesBucketExist(bucketName)) {
      return action;
    }
    VersionListing versionListing=s3c.listVersions(bucketName,"String_Node_Str");
    for (    S3VersionSummary versionSummary : versionListing.getVersionSummaries()) {
      if (versionSummary.getKey().equals(keyName)) {
        s3c.deleteVersion(versionSummary.getBucketName(),versionSummary.getKey(),versionSummary.getVersionId());
      }
    }
  }
   return action;
}

Fixed version (ground truth):
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSCloudFormationWaitConditionHandleResourceAction action=(AWSCloudFormationWaitConditionHandleResourceAction)resourceAction;
  if (!Boolean.TRUE.equals(action.info.getCreatedEnoughToDelete()))   return action;
  try (final EucaS3Client s3c=EucaS3ClientFactory.getEucaS3Client(new CloudFormationAWSCredentialsProvider())){
    ObjectNode objectNode=(ObjectNode)JsonHelper.getJsonNodeFromString(action.info.getEucaParts());
    if (!"String_Node_Str".equals(objectNode.get("String_Node_Str").asText()))     throw new Exception("String_Node_Str");
    String bucketName=objectNode.get("String_Node_Str").asText();
    String keyName=objectNode.get("String_Node_Str").asText();
    if (!s3c.doesBucketExist(bucketName)) {
      return action;
    }
    VersionListing versionListing=s3c.listVersions(bucketName,"String_Node_Str");
    for (    S3VersionSummary versionSummary : versionListing.getVersionSummaries()) {
      if (versionSummary.getKey().equals(keyName)) {
        s3c.deleteVersion(versionSummary.getBucketName(),versionSummary.getKey(),versionSummary.getVersionId());
      }
    }
  }
   return action;
}
Program: 14091
Project: 14091
Buggy source:
public static void copy(RollingUpdateStateEntity sourceEntity,RollingUpdateStateEntity destEntity){
  destEntity.setAccountId(sourceEntity.getAccountId());
  destEntity.setStackId(sourceEntity.getStackId());
  destEntity.setLogicalResourceId(sourceEntity.getLogicalResourceId());
  destEntity.setMinSize(sourceEntity.getMinSize());
  destEntity.setMaxSize(sourceEntity.getMaxSize());
  destEntity.setDesiredCapacity(sourceEntity.getDesiredCapacity());
  destEntity.setState(sourceEntity.getState());
  destEntity.setPreviousRunningInstanceIds(sourceEntity.getPreviousRunningInstanceIds());
  destEntity.setObsoleteInstanceIds(sourceEntity.getObsoleteInstanceIds());
  destEntity.setAlreadySuspendedProcessNames(sourceEntity.getAlreadySuspendedProcessNames());
  destEntity.setNumOriginalObsoleteInstances(sourceEntity.getNumOriginalObsoleteInstances());
  destEntity.setNumSuccessSignals(sourceEntity.getNumSuccessSignals());
  destEntity.setNumFailureSignals(sourceEntity.getNumFailureSignals());
  destEntity.setNumNeededSignalsThisBatch(sourceEntity.getNumNeededSignalsThisBatch());
  destEntity.setNumReceivedSignalsThisBatch(sourceEntity.getNumReceivedSignalsThisBatch());
  destEntity.setNumExpectedTotalSignals(sourceEntity.getNumExpectedTotalSignals());
  destEntity.setSignalCutoffTimestamp(sourceEntity.getSignalCutoffTimestamp());
  destEntity.setBatchSize(sourceEntity.getBatchSize());
  destEntity.setTempDesiredCapacity(sourceEntity.getTempDesiredCapacity());
  destEntity.setTerminatingInstanceIds(sourceEntity.getTerminatingInstanceIds());
  destEntity.setNeedsRollbackUpdate(sourceEntity.getNeedsRollbackUpdate());
}

Fixed version (ground truth):
public static void copy(RollingUpdateStateEntity sourceEntity,RollingUpdateStateEntity destEntity){
  destEntity.setAccountId(sourceEntity.getAccountId());
  destEntity.setStackId(sourceEntity.getStackId());
  destEntity.setLogicalResourceId(sourceEntity.getLogicalResourceId());
  destEntity.setMinSize(sourceEntity.getMinSize());
  destEntity.setMaxSize(sourceEntity.getMaxSize());
  destEntity.setDesiredCapacity(sourceEntity.getDesiredCapacity());
  destEntity.setState(sourceEntity.getState());
  destEntity.setPreviousRunningInstanceIds(sourceEntity.getPreviousRunningInstanceIds());
  destEntity.setCurrentBatchInstanceIds(sourceEntity.getCurrentBatchInstanceIds());
  destEntity.setObsoleteInstancesJson(sourceEntity.getObsoleteInstancesJson());
  destEntity.setAlreadySuspendedProcessNames(sourceEntity.getAlreadySuspendedProcessNames());
  destEntity.setNumExpectedTotalSignals(sourceEntity.getNumExpectedTotalSignals());
  destEntity.setSignalCutoffTimestamp(sourceEntity.getSignalCutoffTimestamp());
  destEntity.setBatchSize(sourceEntity.getBatchSize());
  destEntity.setTempDesiredCapacity(sourceEntity.getTempDesiredCapacity());
  destEntity.setNeedsRollbackUpdate(sourceEntity.getNeedsRollbackUpdate());
}
Program: 14092
Project: 14092
Buggy source:
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSCloudFormationStackResourceAction action=(AWSCloudFormationStackResourceAction)resourceAction;
  if (StacksWithNoUpdateToPerformEntityManager.isStackWithNoUpdateToPerform(action.info.getPhysicalResourceId(),action.info.getAccountId())) {
    return action;
  }
  ServiceConfiguration configuration=Topology.lookup(CloudFormation.class);
  String status=getStackStatusAndReason(action,configuration).getStatus();
  if (status == null) {
    throw new ResourceFailureException("String_Node_Str" + action.info.getPhysicalResourceId());
  }
  if (!status.startsWith("String_Node_Str")) {
    throw new ResourceFailureException("String_Node_Str" + action.info.getPhysicalResourceId() + "String_Node_Str");
  }
  if (status.equals(Status.UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS.toString())) {
    throw new RetryAfterConditionCheckFailedException("String_Node_Str" + action.info.getPhysicalResourceId() + "String_Node_Str");
  }
  return action;
}

Fixed version (ground truth):
@Override public ResourceAction perform(ResourceAction resourceAction) throws Exception {
  AWSCloudFormationStackResourceAction action=(AWSCloudFormationStackResourceAction)resourceAction;
  if (StacksWithNoUpdateToPerformEntityManager.isStackWithNoUpdateToPerform(action.info.getPhysicalResourceId(),action.info.getAccountId())) {
    return action;
  }
  if (StackUpdateInfoEntityManager.hasNoUpdateInfoRecord(action.info.getPhysicalResourceId(),action.info.getAccountId())) {
    return action;
  }
  ServiceConfiguration configuration=Topology.lookup(CloudFormation.class);
  String status=getStackStatusAndReason(action,configuration).getStatus();
  if (status == null) {
    throw new ResourceFailureException("String_Node_Str" + action.info.getPhysicalResourceId());
  }
  if (!status.startsWith("String_Node_Str")) {
    throw new ResourceFailureException("String_Node_Str" + action.info.getPhysicalResourceId() + "String_Node_Str");
  }
  if (status.equals(Status.UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS.toString())) {
    throw new RetryAfterConditionCheckFailedException("String_Node_Str" + action.info.getPhysicalResourceId() + "String_Node_Str");
  }
  return action;
}
Program: 14093
Project: 14093
Buggy source:
private void updateInstances(final AutoScalingInstance fromExample,final Predicate<? super AutoScalingInstance> fromPredicate,final Predicate<? super AutoScalingInstance> updatePredicate,final Collection<String> instanceIds) throws AutoScalingMetadataException {
  final AbstractOwnedPersistents.WorkCallback<Void> updateCallback=new AbstractOwnedPersistents.WorkCallback<Void>(){
    @Override public Void doWork() throws AutoScalingMetadataException {
      final List<AutoScalingInstance> instances=persistenceSupport.listByExample(fromExample,fromPredicate,Property.forName("String_Node_Str").in(instanceIds),Collections.<String,String>emptyMap(),Functions.<AutoScalingInstance>identity());
      CollectionUtils.each(instances,updatePredicate);
      return null;
    }
  }
;
  persistenceSupport.transactionWithRetry(AutoScalingInstance.class,updateCallback);
}

Fixed version (ground truth):
private void updateInstances(final AutoScalingInstance fromExample,final Predicate<? super AutoScalingInstance> fromPredicate,final Predicate<? super AutoScalingInstance> updatePredicate,final Collection<String> instanceIds) throws AutoScalingMetadataException {
  final AbstractOwnedPersistents.WorkCallback<Void> updateCallback=new AbstractOwnedPersistents.WorkCallback<Void>(){
    @Override public Void doWork() throws AutoScalingMetadataException {
      final List<AutoScalingInstance> instances=persistenceSupport.listByExample(fromExample,fromPredicate,Property.forName("String_Node_Str").in(instanceIds),Collections.<String,String>emptyMap(),Functions.<AutoScalingInstance>identity());
      CollectionUtils.each(instances,updatePredicate);
      return null;
    }
  }
;
  if (!instanceIds.isEmpty()) {
    persistenceSupport.transactionWithRetry(AutoScalingInstance.class,updateCallback);
  }
}
Program: 14094
Project: 14094
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + "String_Node_Str" + accountId + '\''+ "String_Node_Str"+ description+ '\''+ "String_Node_Str"+ logicalResourceId+ '\''+ "String_Node_Str"+ metadataJson+ '\''+ "String_Node_Str"+ physicalResourceId+ '\''+ "String_Node_Str"+ internalPhysicalResourceUuid+ '\''+ "String_Node_Str"+ resourceStatus+ "String_Node_Str"+ resourceStatusReason+ '\''+ "String_Node_Str"+ resourceType+ '\''+ "String_Node_Str"+ ready+ "String_Node_Str"+ propertiesJson+ '\''+ "String_Node_Str"+ updatePolicyJson+ '\''+ "String_Node_Str"+ deletionPolicy+ '\''+ "String_Node_Str"+ allowedByCondition+ "String_Node_Str"+ referenceValueJson+ '\''+ "String_Node_Str"+ resourceAttributesJson+ '\''+ "String_Node_Str"+ stackId+ '\''+ "String_Node_Str"+ stackName+ '\''+ "String_Node_Str"+ recordDeleted+ '}';
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + "String_Node_Str" + accountId + '\''+ "String_Node_Str"+ description+ '\''+ "String_Node_Str"+ logicalResourceId+ '\''+ "String_Node_Str"+ metadataJson+ '\''+ "String_Node_Str"+ physicalResourceId+ '\''+ "String_Node_Str"+ resourceStatus+ "String_Node_Str"+ resourceStatusReason+ '\''+ "String_Node_Str"+ resourceType+ '\''+ "String_Node_Str"+ ready+ "String_Node_Str"+ createdEnoughToDelete+ "String_Node_Str"+ propertiesJson+ '\''+ "String_Node_Str"+ updatePolicyJson+ '\''+ "String_Node_Str"+ deletionPolicy+ '\''+ "String_Node_Str"+ allowedByCondition+ "String_Node_Str"+ referenceValueJson+ '\''+ "String_Node_Str"+ resourceAttributesJson+ '\''+ "String_Node_Str"+ stackId+ '\''+ "String_Node_Str"+ stackName+ '\''+ "String_Node_Str"+ fromUpdateReplacement+ '\''+ "String_Node_Str"+ recordDeleted+ '}';
}
Program: 14095
Project: 14095
Buggy source:
public static StackResourceEntity updateResourceInfo(StackResourceEntity stackResourceEntity,ResourceInfo resourceInfo) throws CloudFormationException {
  stackResourceEntity.setAccountId(resourceInfo.getAccountId());
  stackResourceEntity.setResourceType(resourceInfo.getType());
  stackResourceEntity.setAllowedByCondition(resourceInfo.getAllowedByCondition());
  stackResourceEntity.setDeletionPolicy(resourceInfo.getDeletionPolicy());
  stackResourceEntity.setDescription(resourceInfo.getDescription());
  stackResourceEntity.setLogicalResourceId(resourceInfo.getLogicalResourceId());
  stackResourceEntity.setMetadataJson(resourceInfo.getMetadataJson());
  stackResourceEntity.setPhysicalResourceId(resourceInfo.getPhysicalResourceId());
  stackResourceEntity.setPropertiesJson(resourceInfo.getPropertiesJson());
  stackResourceEntity.setReady(resourceInfo.getReady());
  stackResourceEntity.setReferenceValueJson(resourceInfo.getReferenceValueJson());
  stackResourceEntity.setUpdatePolicyJson(resourceInfo.getUpdatePolicyJson());
  stackResourceEntity.setResourceAttributesJson(ResourceInfoHelper.getResourceAttributesJson(resourceInfo));
  return stackResourceEntity;
}

Fixed version (ground truth):
public static StackResourceEntity updateResourceInfo(StackResourceEntity stackResourceEntity,ResourceInfo resourceInfo) throws CloudFormationException {
  stackResourceEntity.setAccountId(resourceInfo.getAccountId());
  stackResourceEntity.setResourceType(resourceInfo.getType());
  stackResourceEntity.setAllowedByCondition(resourceInfo.getAllowedByCondition());
  stackResourceEntity.setCreatedEnoughToDelete(resourceInfo.getCreatedEnoughToDelete());
  stackResourceEntity.setDeletionPolicy(resourceInfo.getDeletionPolicy());
  stackResourceEntity.setDescription(resourceInfo.getDescription());
  stackResourceEntity.setLogicalResourceId(resourceInfo.getLogicalResourceId());
  stackResourceEntity.setMetadataJson(resourceInfo.getMetadataJson());
  stackResourceEntity.setPhysicalResourceId(resourceInfo.getPhysicalResourceId());
  stackResourceEntity.setPropertiesJson(resourceInfo.getPropertiesJson());
  stackResourceEntity.setReady(resourceInfo.getReady());
  stackResourceEntity.setReferenceValueJson(resourceInfo.getReferenceValueJson());
  stackResourceEntity.setUpdatePolicyJson(resourceInfo.getUpdatePolicyJson());
  stackResourceEntity.setResourceAttributesJson(ResourceInfoHelper.getResourceAttributesJson(resourceInfo));
  return stackResourceEntity;
}