Added Resource holder implementation. TODO: test