createDependencies
This method creates the dependencies when a new reaction is added to the environment. Please be careful when building the environment and populating the existing reactions map: this method assumes that all the dependencies among the existing reactions are correct and up to date.
Parameters
reactionHandler
the reaction handler whose dependencies should be calculated.