private void deleteIpLeaseDocuments(final State current,List<IpLeaseService.State> ipLeaseList){
  if (ipLeaseList.size() == 0) {
    ServiceUtils.logInfo(this,"No Ip Lease documents found any more.");
    finishTask(current);
    return;
  }
  for (  IpLeaseService.State ipLease : ipLeaseList) {
    deleteIpLease(ipLease);
  }
  finishTask(current);
}

private void deleteIpLeaseDocuments ( final State current , List < IpLeaseService . State > ipLeaseList ) { if ( ipLeaseList . size ( ) == 0 ) { ServiceUtils . logInfo ( this , "No Ip Lease documents found any more." ) ; finishTask ( current ) ; return ; } for ( IpLeaseService . State ipLease : ipLeaseList ) { deleteIpLease ( ipLease ) ; } finishTask ( current ) ; }
delete the ip lease documents .
