public Scope getScope(Object obj, int scopeType) {
		int count = scopes.size();
		for (int ptr = count; ptr-- > 0;) {
			Scope scope = (Scope) scopes.elementAt(ptr);
			if (scope.isScopeOf(obj, scopeType))
				return scope;
		}
		return null;
	}