if (node instanceof OperationWrapperNode) {
return ((OperationWrapperNode) node).getDataObject().getActivity();
} else if (node instanceof EmailWrapperNode) {
return ((EmailWrapperNode) node).getDataObject().getActivity();
} else if (node instanceof PipelineActivityNode) {
PipelineActivity a = ((PipelineActivityNode) node).getDataObject();
Object content = a.getContent();
if (content instanceof IntegrationEntity) {
return (IntegrationEntity) content;
}
}
return null;