CustomMarshallerExample

doesMarshal

Override the doesMarshal method and return true for the
desired class. Keep in mind that getting the class directly
or comparing "getClass().getName()" is much faster than
using "instanceof", and since this method could be called
for every object that's found in the object graph, this
method should run fast.