A RFS linked to several supporting resources is not updating its status correctly
The method findNextStateBasedOnSupportingResources which is responsible for extracting the next state of an RFS (with supporting resources), was not properly utilizing the return of the next state.
There is a For loop around supporting resources and the next state is returned during the first iteration. (if the first resource is available then the next RFS state is always active, regardless of remaining resources in other statuses).