code: private String cleanSlashesFromPath(final String path) {
  		if (path == null) {
  			throw new IllegalArgumentException("createResource must be called with non-null resourceName!");
  		}
  		String workPath = path;
  		if (workPath.charAt(0) == '/') {
  			workPath = path.substring(1);
  		}
  		if (workPath.charAt(path.length() - 1) == '/') {
  			workPath = path.substring(0, path.length() - 1);
  		}
  		return workPath;
  	}
docs: Removes the leading '/' because it does not have any meaning
  (with and without should point to the same resource)
  
  @param path the resource-path to clean
  @return resource-path without leading '/'