code: private boolean ping() {
          try {
              URL alfrescoTomcatUrl = buildFinalUrl("");
              TelnetClient telnetClient = new TelnetClient();
              telnetClient.setDefaultTimeout(500);
              telnetClient.connect(alfrescoTomcatUrl.getHost(), alfrescoTomcatUrl.getPort());
              return true;
          } catch (Exception ex) {
              return false;
          }
      }
docs: Utility method to ping/call the Alfresco Tomcat server and see if it is up (running)
  
  @return true if the Alfresco Tomcat server was reachable and up