code: private String formatPath(String path) {
  		String formattedPath = null;
  		if (path != null) {
  			formattedPath = (path.startsWith("/") ? path : "/" + path);
  			formattedPath = (formattedPath.endsWith("/") ? formattedPath : formattedPath + "/");
  		}
  		return formattedPath;
  	}
docs: helpers