Bug 273163 [CSS] Remove dependency on org.apache.commons.logging, xerces, xml.resolver
We shouldn't require this.
bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/resources/SWTResourcesRegistry.java
public class SWTResourcesRegistry extends AbstractResourcesRegistry {
	private static Log logger = LogFactory.getLog(SWTResourcesRegistry.class);
	public SWTResourcesRegistry(Display display) {
		if (display == null)
			return;
		
		
		display.addListener(SWT.Dispose, new Listener() {
			public void handleEvent(Event event) {
				dispose();
			}
		});
	}
	public Object getResource(Object type, Object key) {
		Object resource = super.getResource(type, key);
		if (resource != null) {
			
			if (isDisposed(resource)) {
				
				
				super.unregisterResource(resource);
				return null;
			}
		}
		return resource;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.e4.ui.core.css.resources.AbstractResourcesRegistry#registerResource(java.lang.String,