String name = entry.getKey().getLocalPart();
properties.put(name, entry.getValue());
}
ObjectRecipe recipe = new ObjectRecipe(className, properties);
recipe.allow(Option.IGNORE_MISSING_PROPERTIES);
Channel channel = (Channel) recipe.create(cl);
for (InterceptorType interceptorType : getInterceptor()) {
channel.addInterceptor(interceptorType.getInterceptor(cl));
}
if (channel instanceof ManagedChannel) {
ManagedChannel managedChannel = (ManagedChannel) channel;
if (sender != null) {
managedChannel.setChannelSender(sender.getSender(cl));