Deleted extra getResoure()