return Optional.<MessageSerializer>empty();
}
final MessageSerializer serializer = (MessageSerializer) clazz.newInstance();
if (config.config != null)
serializer.configure(config.config);
return Optional.ofNullable(serializer);
} catch (ClassNotFoundException cnfe) {
logger.warn("Could not find configured serializer class - {} - it will not be available", config.className);
return Optional.<MessageSerializer>empty();