code: public static URL convertFileToURL( String filePath ) throws MalformedURLException {
          CheckArg.isNotEmpty(filePath, "filePath");
          File file = new File(filePath.trim());
          return file.toURI().toURL();
      }
docs: Utility to convert {@link File} to {@link URL}.
  
  @param filePath the path of the file
  @return the {@link URL} representation of the file.
  @throws MalformedURLException
  @throws IllegalArgumentException if the file path is null, empty or blank