Add support for classpath and url resources