code: public static String concatEntityHref(
        String baseUri, String qualifiedEntityName, Object entityIdValue) {
      if (null == qualifiedEntityName) {
        qualifiedEntityName = "";
      }
  
      return String.format(
          "%s/%s/%s",
          baseUri,
          encodePathSegment(qualifiedEntityName),
          encodePathSegment(DataConverter.toString(entityIdValue)));
    }
docs: Create an encoded href for an entity