Add method consume in ResourcesManager and Resource