modified the getResource class