code: static String getServiceFromBuildName(String buildName) {
          if (null == buildName || buildName.isEmpty()) {
              return buildName;
          }
  
          return buildName.substring(0, buildName.lastIndexOf('-'));
      }
docs: Converts an OpenShift build name into a service name
  @param buildName the build name, such as "hawkular-apm-1"
  @return the service name, such as "hawkular-apm"