if (logger.isInfoEnabled()) logger.info("Available Bandwidth Changed to Moderate");
if (logger.isInfoEnabled()) logger.info("Available Bandwidth Changed to Moderate for enclave " + getBlackboardClientName());
      public void doGet(HttpServletRequest request, HttpServletResponse response) {        String none = request.getParameter(LOW);        String moderate = request.getParameter(MODERATE);        String high = request.getParameter(HIGH);        response.setContentType("text/html");        AvailableBandwidthDiagnosis diag = null;        blackboard.openTransaction();        Collection c = blackboard.query(AvailableBandwidthDiagnosis.pred);        Iterator iter = c.iterator();        if (iter.hasNext()) {            diag = (AvailableBandwidthDiagnosis)iter.next();        }        try {            PrintWriter out = response.getWriter();            sendData(out);            if (diag == null) {                try {                     diag = new AvailableBandwidthDiagnosis("LOCAL", serviceBroker);                }                catch (TechSpecNotFoundException e) {                    logger.error(e.toString());                }                blackboard.publishAdd(diag);            }            try {                if (none != null) {                    diag.setValue(LOW);                    out.println("<center><h2>Available Bandwidth Changed to Low </h2></center><br>" );                    blackboard.publishChange(diag);                     if (logger.isInfoEnabled()) logger.info("Available Bandwidth Changed to Low");                }                else if (moderate != null) {                    diag.setValue(MODERATE);                    out.println("<center><h2>Available Bandwidth Changed to Moderate</h2></center><br>" );                    blackboard.publishChange(diag);                     if (logger.isInfoEnabled()) logger.info("Available Bandwidth Changed to Moderate");                }                else if (high != null) {                    diag.setValue(HIGH);                    out.println("<center><h2>Available Bandwidth Changed to High</h2></center><br>" );                    blackboard.publishChange(diag);                     if (logger.isInfoEnabled()) logger.info("Available Bandwidth Changed to High");                }            }            catch (IllegalValueException e) {                logger.error(e.toString());            }            out.close();        }        catch (java.io.IOException e) {             e.printStackTrace();         }        blackboard.closeTransaction();    }