ActionDefinition actionDefinition;
try {
actionDefinition = objectMapper.readValue(definition, actionDefinitionClass);
} catch (IOException e) {
String message = "Fail to unmarshall action definition for class " + actionDefinitionClass;
throw new ActionDefinitionMarshallerException(message, e);
}
return actionDefinition;
}