private static void chainloader(Loader nl) {
		synchronized (Resource.class) {
			if (loader == null) {
				loader = nl;
			} else {
				Loader l;
				for (l = loader; l.next != null; l = l.next)
					;
				l.chain(nl);
			}
		}
	}