if ( (System.currentTimeMillis() - lastRequestTime) < 120000)  { out.println("<center><h2>Failed to Connect - Requests must be at least 2 minutes apart. </h2></center><br>"); if (logger.isErrorEnabled()) logger.error("Failed to Connect - Requests must be at least 2 minutes apart."); if (eventService.isEventEnabled()) { eventService.event("Failed to Connect - Requests must be at least 2 minutes apart."); } return; } lastRequestTime = System.currentTimeMillis();
      private void reconnect(PrintWriter out) {          try {              blackboard.openTransaction();              LocalReconnectTimeCondition lrtc = LocalReconnectTimeCondition.findOnBlackboard(assetType, assetID, blackboard);              if (lrtc != null) {                  lrtc.setTime(new Double(0.0));                  out.println("<center><h2>Status Changed - Reconnect Requested</h2></center><br>" );                  blackboard.publishChange(lrtc);                   if (logger.isDebugEnabled()) logger.debug("Reconnect Request: "+lrtc.getAsset()+" = "+lrtc.getValue().toString());                  }              else {                  out.println("<center><h2>Failed to Reset</h2></center><br>");              }              blackboard.closeTransaction();          } finally {                if (blackboard.isTransactionOpen()) blackboard.closeTransactionDontReset();          }                  }   