/** {@inheritDoc} */ @Nullable @Override protected Object replaceObject(Object obj) throws IOException { if (obj == null || GridMarshallerExclusions.isExcluded(obj.getClass())) return null; if (requireSer || obj instanceof Serializable) return obj; return new GridOptimizedWrapper(obj); }
/** {@inheritDoc} */ @Override public boolean canConvert(Class cls) { return GridMarshallerExclusions.isExcluded(cls); }