code: private static boolean isOutFile(final URI filePathName, final URI inputMap) {
          final URI relativePath = URLUtils.getRelativePath(inputMap, filePathName);
          return !(relativePath.getPath().length() == 0 || !relativePath.getPath().startsWith(".."));
      }
docs: Check if path falls outside start document directory
  
  @param filePathName absolute path to test
  @param inputMap     absolute input map path
  @return {@code true} if outside start directory, otherwise {@code false}