beanToSend = beanClass.newInstance();
for (Map.Entry<String, Object> entry : mapToSend.entrySet()) {
BeanEventPropertyWriter writer = writers.get(entry.getKey());
if (writer != null) {
writer.writeValue(entry.getValue(), beanToSend);
}
}
}
catch (Exception e) {
throw new EPException("Cannot populate bean instance", e);