Added code for release resource and all the entities generated