code: public static File toFile(final URL aURL) throws MalformedURLException {
          if (aURL.getProtocol().equals(FILE_TYPE)) {
              return new File(aURL.toString().replace("file:", ""));
          }
  
          throw new MalformedURLException(LOGGER.getI18n(MessageCodes.UTIL_036, aURL));
      }
docs: Returns a Java <code>File</code> for the supplied file-based URL.
  
  @param aURL A URL that has a file protocol
  @return A Java <code>File</code> for the supplied URL
  @throws MalformedURLException If the supplied URL doesn't have a file protocol