partyEntity);
List<PartyEntity> partyEntities = new ArrayList<PartyEntity>();
for (PartyStruct partyStruct : partyStructs) {
if (partyStruct.getPartyStructType().getId() == partyStructTypeId) {
PartyEntity childPartyEntity = partyStruct.getChildEntity();
if (childPartyEntity.getPartyType().getType() != 1) {
partyEntities.add(childPartyEntity);
}
}
}