code: public void registerAll(Iterable<? extends CompositeStateHandle> stateHandles) {
  
  		if (stateHandles == null) {
  			return;
  		}
  
  		synchronized (registeredStates) {
  			for (CompositeStateHandle stateHandle : stateHandles) {
  				stateHandle.registerSharedStates(this);
  			}
  		}
  	}
docs: Register given shared states in the registry.
  
  @param stateHandles The shared states to register.