import java.text.MessageFormat;
import java.util.Date;
import java.util.List;
+import java.util.Objects;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import org.mxchange.jcontacts.model.contact.Contact;
// Check all single addresses
for (final BranchOffice bo : branchOffices) {
// Is the same address found?
- if (BranchOffices.isSameAddress(bo, branchOffice)) {
+ if (Objects.equals(bo.getBranchId(), branchOffice.getBranchId()) || BranchOffices.isSameAddress(bo, branchOffice)) {
// Found one
isFound = true;
break;