/**
  * deleteThese
  *
  * @param deleteServices a {@link java.util.List} object.
  * @throws java.io.IOException if any.
  */
 public void deleteThese(java.util.List<String> deleteServices) throws IOException {
   for (String svcname : deleteServices) {
     if (pkg != null) {
       boolean flag = false;
       Collection<Service> svcColl = pkg.getServices();
       if (svcColl != null) {
         for (Service svc : svcColl) {
           if (svc != null) {
             if (svc.getName().equals(svcname)) {
               pkg.removeService(svc);
               removeMonitor(svc.getName());
               deleteCapsdInfo(svc.getName());
               props.remove("service." + svc.getName() + ".protocol");
               props.store(
                   new FileOutputStream(
                       ConfigFileConstants.getFile(ConfigFileConstants.POLLER_CONF_FILE_NAME)),
                   null);
               break;
             }
           }
         }
       }
     }
   }
 }
 /** initPollerServices */
 public void initPollerServices() {
   Collection<org.opennms.netmgt.config.poller.Package> packageColl = pollerConfig.getPackages();
   if (packageColl != null) {
     Iterator<org.opennms.netmgt.config.poller.Package> pkgiter = packageColl.iterator();
     if (pkgiter.hasNext()) {
       pkg = pkgiter.next();
       Collection<Service> svcColl = pkg.getServices();
       for (Service svcProp : svcColl) {
         pollerServices.put(svcProp.getName(), svcProp);
       }
     }
   }
 }
 /**
  * modifyPollerInfo
  *
  * @param bPolled a {@link java.lang.String} object.
  * @param protocol a {@link java.lang.String} object.
  */
 public void modifyPollerInfo(String bPolled, String protocol) {
   if (pkg != null) {
     Collection<Service> svcColl = pkg.getServices();
     if (svcColl != null) {
       for (Service svc : svcColl) {
         if (svc != null) {
           if (svc.getName().equals(protocol)) {
             svc.setStatus(bPolled);
             break;
           }
         }
       }
     }
   }
 }
 /**
  * adjustNonChecked
  *
  * @param checkedList a {@link java.util.List} object.
  */
 public void adjustNonChecked(java.util.List<String> checkedList) {
   if (pkg != null) {
     Collection<Service> svcColl = pkg.getServices();
     if (svcColl != null) {
       for (Service svc : svcColl) {
         if (svc != null) {
           if (!checkedList.contains(svc.getName())) {
             if (svc.getStatus().equals("on")) {
               svc.setStatus("off");
             }
           }
         }
       }
     }
   }
 }