code: public static String getPathFromServiceId(String serviceId) {
          return serviceId.substring(serviceId.indexOf(":") + 1, serviceId.lastIndexOf(":"));
      }
docs: get path of url from service id in consul
  
  @param serviceId service id
  @return path