if (ids.iterator().hasNext()) {
String domainName = getDomainName(entityClass);
List<DeletableItem> deleteList = new ArrayList<DeletableItem>();
for (ID id : ids) {
deleteList.add(new DeletableItem().withName((String) id));
}
// max allowed batch size is 25
List<DeletableItem> batch = new ArrayList<DeletableItem>(MAX_BATCH_SIZE);
for (int i = 0; i < deleteList.size(); i += MAX_BATCH_SIZE) {
int batchIndex = ((i + MAX_BATCH_SIZE) < deleteList.size()) ? (i + MAX_BATCH_SIZE)