Change visibility of getResource to protected