public static File tryGetCanonicalFileElseGetAbsoluteFile(final File file) {
    try {
      return file.getCanonicalFile();
    } catch (IOException e) {
      return file.getAbsoluteFile();
    }
  }
This method attempts to get the canonical form of the specified file otherwise returns it's
absolute form.
<p>

@param file the java.io.File object who's canonical representation is attempted to be returned.
@return the canonical form of the specified File or the absolute form if an IOException occurs
        during the File.getCanonicalFile call.
@see java.io.File#getCanonicalFile()
@see java.io.File#getAbsoluteFile()
geode-core/src/main/java/org/apache/geode/internal/util/IOUtils.java