if (curGlobalSingleton != null)
if (activeGlobalSingleton != null)
	synchronized int isLocked(EclipseAppDescriptor eclipseApp) {		if (curGlobalSingleton != null)			return LOCKED_SINGLETON_GLOBAL_RUNNING;		switch (eclipseApp.getCardinalityType()) {			case EclipseAppDescriptor.FLAG_CARD_SINGLETON_GLOGAL :				if (curHandles.size() > 0)					return LOCKED_SINGLETON_GLOBAL_APPS_RUNNING;				break;			case EclipseAppDescriptor.FLAG_CARD_SINGLETON_SCOPED :				if (curScopedSingleton != null)					return LOCKED_SINGLETON_SCOPED_RUNNING;				break;			case EclipseAppDescriptor.FLAG_CARD_LIMITED :				if (curLimited != null) {					ArrayList limited = (ArrayList) curLimited.get(eclipseApp.getApplicationId());					if (limited != null && limited.size() >= eclipseApp.getCardinality())						return LOCKED_SINGLETON_LIMITED_RUNNING;				}				break;			case EclipseAppDescriptor.FLAG_CARD_UNLIMITED :				break;			default :				break;		}		if (eclipseApp.getThreadType() == EclipseAppDescriptor.FLAG_TYPE_MAIN_THREAD && curMain != null)			return LOCKED_MAIN_THREAD_RUNNING;		return NOT_LOCKED;	}