code: private String normalizeParentPath(String uri) {
          String relativeUri = extractRelativeUrl(uri, null);
          if (relativeUri.endsWith("/") && relativeUri.length() != 1) {
              relativeUri = StringUtils.removeEndIgnoreCase(relativeUri, "/");
          }
          return relativeUri;
      }
docs: A method normalizing "resource" path. In RAML resource path must neither be empty ("/" is used in this case),
  not ends with "/" (as all uri must start with "/").
  
  @param uri the uri to normalized
  @return the normalized path