OMElement omElementToUse = (OMElement) xpath.selectSingleNode(eventOMElement);
Class beanClass = Class.forName(type);
return BeanUtil.deserialize(beanClass,
omElementToUse, new ReflectionBasedObjectSupplier(), null);
} catch (ClassNotFoundException e) {
throw new CEPEventProcessingException("Can not load the class " + type, e);
} catch (AxisFault axisFault) {
throw new CEPEventProcessingException("Error in parsing the omelement ", axisFault);
} catch (JaxenException e) {
throw new CEPEventProcessingException("Can not evaluate the xpath ", e);
}
}