fixes #7. Add virtual initialize method to Resource base class.