code: public static String getResourceURL(String resource) {
          ClassLoader cl = Thread.currentThread().getContextClassLoader();
          return cl.getResource(resource).toString();
      }
docs: Returns the URL for file on the classpath as a String