code: protected void setSuspended(boolean value, int detail)
  	{
  		suspended = value;
  		if (value)
  		{
  			++modificationsCount;
  		}
  
  		if (value)
  		{
  			handler.handleSuspend(detail);
  		} else
  		{
  			handler.handleResume(detail);
  		}
  	}
docs: State management