Added getInstance to Resource class