Resource and persistent handles factory
