code: @SneakyThrows
      public static String getCasServerHostName() {
          val hostName = InetAddress.getLocalHost().getHostName();
          val index = hostName.indexOf('.');
          if (index > 0) {
              return hostName.substring(0, index);
          }
          return hostName;
      }
docs: Gets cas server host name.
  
  @return the cas server host name