public EventBean copy(EventBean theEvent) { DecoratingEventBean decorated = (DecoratingEventBean) theEvent; EventBean decoratedUnderlying = decorated.getUnderlyingEvent(); EventBean copiedUnderlying = underlyingCopyMethod.copy(decoratedUnderlying); if (copiedUnderlying == null) { return null; } Map<String, Object> copiedMap = new HashMap<String, Object>(decorated.getDecoratingProperties()); return eventAdapterService.adapterForTypedWrapper(copiedUnderlying, copiedMap, wrapperEventType); } }
public EventBean copy(EventBean theEvent) { DecoratingEventBean decorated = (DecoratingEventBean) theEvent; EventBean decoratedUnderlying = decorated.getUnderlyingEvent(); EventBean copiedUnderlying = underlyingCopyMethod.copy(decoratedUnderlying); if (copiedUnderlying == null) { return null; } return eventAdapterService.adapterForTypedWrapper(copiedUnderlying, decorated.getDecoratingProperties(), wrapperEventType); } }
boolean copy = variablesBeansCopied.add(writeDesc.getVariableName()); if (copy) { current = copyMethods.get(writeDesc.getType()).copy(current);
InternalRoutePreprocessView view = lastEntry.getOutputView(); if (view.isIndicate()) { EventBean copied = copyMethod.copy(theEvent); view.indicate(copied, oldEvent); oldEvent = copied; } else { if (entries[i].getOutputView().isIndicate()) { oldEvent = copyMethod.copy(theEvent); EventBean copiedEvent = copyMethod.copy(theEvent); if (copiedEvent == null) { log.warn("Event of type " + theEvent.getEventType().getName() + " could not be copied");