SAXParserFactory parserFactory = (SAXParserFactory) _context.getService(ref);  if (parserFactory == _currentParserFactory) {
if (object == _currentParserFactory) {
	public void removedService(ServiceReference ref, Object object) {		SAXParserFactory parserFactory = (SAXParserFactory) _context.getService(ref);		if (parserFactory == _currentParserFactory) {			// This means that this SAXParserFactory was used to start the			// MetaType Service.			synchronized (lock) {				_currentParserFactory = null;				if (_mtsReg != null) {					_mtsReg.unregister();					_mtsReg = null;					_context.removeBundleListener(_mts);					_mts = null;					parserFactory = null;				}				// See if another factory is available				Object[] parsers = _parserTracker.getServices();				if (parsers != null && parsers.length > 0) {					_currentParserFactory = (SAXParserFactory) parsers[0];					// We have another parser so lets restart the MetaType					// Service					registerMetaTypeService();				}			}		}	}