code: private void tidySerialization(Class<?> reloadedClass) {
  		//		if (true) return;
  		try {
  			Class<?> clazz = Class.forName("java.io.ObjectStreamClass$Caches");
  			Field localDescsField = clazz.getDeclaredField("localDescs");
  			localDescsField.setAccessible(true);
  			ConcurrentMap cm = (ConcurrentMap) localDescsField.get(null);
  			// TODO [serialization] a bit extreme to wipe out everything
  			cm.clear();
  			// For some reason clearing the reflectors damages serialization - is it not a true cache?
  			//			Field reflectorsField = clazz.getDeclaredField("reflectors");
  			//			reflectorsField.setAccessible(true);
  			//			cm = (ConcurrentMap)reflectorsField.get(null);
  			//			cm.clear();
  		}
  		catch (ClassNotFoundException e) {
  			throw new IllegalStateException(e);
  		}
  		catch (NoSuchFieldException e) {
  			throw new IllegalStateException(e);
  		}
  		catch (SecurityException e) {
  			throw new IllegalStateException(e);
  		}
  		catch (IllegalArgumentException e) {
  			throw new IllegalStateException(e);
  		}
  		catch (IllegalAccessException e) {
  			throw new IllegalStateException(e);
  		}
  
  
  		//		private static class Caches {
  		//	        /** cache mapping local classes -> descriptors */
  		//	        static final ConcurrentMap<WeakClassKey,Reference<?>> localDescs =
  		//	            new ConcurrentHashMap<>();
  		//
  		//	        /** cache mapping field group/local desc pairs -> field reflectors */
  		//	        static final ConcurrentMap<FieldReflectorKey,Reference<?>> reflectors =
  		//	            new ConcurrentHashMap<>();
  		//
  		//	        /** queue for WeakReferences to local classes */
  		//	        private static final ReferenceQueue<Class<?>> localDescsQueue =
  		//	            new ReferenceQueue<>();
  		//	        /** queue for WeakReferences to field reflectors keys */
  		//	        private static final ReferenceQueue<Class<?>> reflectorsQueue =
  		//	            new ReferenceQueue<>();
  		//	    }
  	}
docs: /*  removeBeanInfo(Class<?> type) {