code: public void source(String resource, String username, String password, String dbName) throws ManagedProcessException {
          InputStream from = getClass().getClassLoader().getResourceAsStream(resource);
          if (from == null)
              throw new IllegalArgumentException("Could not find script file on the classpath at: " + resource);
          run("script file sourced from the classpath at: " + resource, from, username, password, dbName);
      }
docs: Takes in a string that represents a resource on the classpath and sources it via the mysql
  command line tool.
  
  @param resource the path to a resource on the classpath to source
  @param username the username used to login to the database
  @param password the password used to login to the database
  @param dbName the name of the database (schema) to source into
  @throws ManagedProcessException if something fatal went wrong