Build put and del handler of resource