code: static private boolean hasInheritableReplaceMethod (Class type, String methodName) {
  		Method method = null;
  		Class current = type;
  		while (current != null) {
  			try {
  				method = current.getDeclaredMethod(methodName);
  				break;
  			} catch (NoSuchMethodException ex) {
  				current = current.getSuperclass();
  			}
  		}
  		return ((method != null) && (method.getReturnType() == Object.class));
  	}
docs: /* find out if there are any pesky serialization extras on this class