Added example inline documentation for createURLFromResource