use the classloader as instance variable instead of runtime
let RegularFileResource handle the case when URLResource does not exists