Add getFile call to getResource