code: private static String scalaVersion() {
          String scalaVersion = "";
          try {
              Class<?> scalaProperties = Class.forName("scala.util.Properties");
              scalaVersion = "scala";
              String version = (String)scalaProperties.getMethod("versionNumberString").invoke(null);
              scalaVersion = concat(scalaVersion, version, "/");
          } catch (ClassNotFoundException e) {
              //Ignore
          } catch (Exception e) {
              if (log.isTraceEnabled()){
                  log.trace("Exception attempting to get Scala version.", e);
              }
          }
          return scalaVersion;
      }
docs: Attempt to determine if Scala is on the classpath and if so what version is in use.
  Does this by looking for a known Scala class (scala.util.Properties) and then calling
  a static method on that class via reflection to determine the versionNumberString.
  
  @return Scala version if any, else empty string