MapEventType mapType = (MapEventType) selectFromType;
targetType = statementContext.getEventAdapterService().addNestableMapType(typeName, mapType.getTypes(), null, false, false, false, true, false);
}
else if (selectFromType instanceof BeanEventType)
{
BeanEventType beanType = (BeanEventType) selectFromType;
targetType = statementContext.getEventAdapterService().addBeanTypeByName(typeName, beanType.getUnderlyingType(), true);
}
else
{
Map<String, Object> addOnTypes = new HashMap<String, Object>();
targetType = statementContext.getEventAdapterService().addWrapperType(typeName, selectFromType, addOnTypes, true, false);