public void deleteBusinesses(String authInfo, String businessXML, String businessKey, int numberOfCopies) {
try {
for (int i = 0; i < numberOfCopies; i++) {
// Delete the entity and make sure it is removed
String key = businessKey + "-" + i;
DeleteBusiness db = new DeleteBusiness();
db.setAuthInfo(authInfo);
db.getBusinessKey().add(key);
publication.deleteBusiness(db);
logger.debug("Deleted business with key " + key);
}
} catch (Exception e) {