if ((status & EclipseAppHandle.STOPPING) != 0) if (ApplicationHandle.STOPPING == state)
if ((status & EclipseAppHandle.FLAG_STOPPING) != 0) if ((this.status & (EclipseAppHandle.FLAG_STOPPING | EclipseAppHandle.FLAG_STOPPED)) != 0)
	synchronized void setAppStatus(int status) {		if ((status & EclipseAppHandle.ACTIVE) != 0)			throw new IllegalArgumentException("Cannot set app status to ACTIVE"); //$NON-NLS-1$		// if status is stopping and the context is already stopping the return		if ((status & EclipseAppHandle.STOPPING) != 0)			if (ApplicationHandle.STOPPING == state)				return;		// in both cases if the handle is not stopping then set it and		// change the service properties to reflect the state change.		if (state != ApplicationHandle.STOPPING) {			state = ApplicationHandle.STOPPING;			sr.setProperties(getServiceProperties());		}		// if the status is stopped then unregister the service		if ((status & EclipseAppHandle.STOPPED) != 0 && (this.status & EclipseAppHandle.STOPPED) == 0) {			sr.unregister();			((EclipseAppDescriptor) getApplicationDescriptor()).getContainerManager().unlock(this);		}		this.status = status;	}