String name = entry.getKey().getLocalPart();
properties.put(name, entry.getValue());
}
ObjectRecipe recipe = new ObjectRecipe(className, properties);
recipe.allow(Option.IGNORE_MISSING_PROPERTIES);
ChannelSender channelSender = (ChannelSender) recipe.create(cl);
if (channelSender instanceof ReplicationTransmitter && transport != null) {
ReplicationTransmitter replicationTransmitter = (ReplicationTransmitter) channelSender;
replicationTransmitter.setTransport(transport.getTransport(cl));
}
return channelSender;