fun <P> Iterable<ContractState>.sumObligations(): Amount<P>
Sums the obligation states in the list, throwing an exception if there are none. All state objects in the list are presumed to be nettable.