added new kind of templatized resource manager class