DirectionAwareContextSerializer serializer = contextHolder.getSerializer();
String data = contextHolder.hasSerialized()
? contextHolder.getSerialized()
: serializer.serialize(contextHolder.getContext(), direction);
if (null == data) {
throw new ContextSerializationException("Serializer returned null for context name: " + contextHolder.getContextName());
}