for (Method method : customSerializer.getMethods()) {
if ("serialize".equals(method.getName())) {
assert Modifier.isStatic(method.getModifiers()) : "serialize method "
+ "in type " + customSerializer.getName() + " must be static";
final InvokeCustomFieldSerializerCommand toReturn = new InvokeCustomFieldSerializerCommand(
instanceClass, customSerializer, manuallySerializedType);
identityMap.put(instance, toReturn);
CommandServerSerializationStreamWriter subWriter = new CommandServerSerializationStreamWriter(
clientOracle, new HasValuesCommandSink(toReturn));