Refactored ResourceHolder.hpp