nit: I never like these "generic" names; how about "onResourceCallback" ?