code: public static String getNestedContainerName(String name, String parentIstanceId, String namePrefix) {
  
          String prefix;
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(namePrefix)) {
              prefix = parentIstanceId + "-";
          } else if ("none".equals(namePrefix)) {
              prefix = "";
          } else {
              prefix = namePrefix + "-";
          }
          return prefix + name;
      }
docs: Returns the prefixed nested container name.<p>
  This will be either {parentInstanceId}-{name} or {namePrefix}-{name} or in case namePrefix equals 'none' {name} only.<p>
  
  @param name the container name
  @param parentIstanceId the parent instance id
  @param namePrefix the name prefix attribute
  
  @return the nested container name