} else {
throw new ProcessEngineException("Cannot find a VariableType that serializes objects"
+ " for the default format '" + defaultSerializationFormat + "'");
}
} else {
variableTypes.addType(new SerializableType());
if(ProcessEngineSpinSupport.isSpinAvailable()) {
VariableType spinVariableType = ProcessEngineSpinSupport
.getVariableTypeResolver()
.getTypeForSerializationFormat("application/json; implementation=tree");
variableTypes.addType(spinVariableType);