if (event instanceof LocalVariableWriteEvent) {
LocalVariableWriteEvent local = (LocalVariableWriteEvent)event;
return new LocalVariableImpl(session, local.getVariable(), value, local.getTimestamp());
} else if (event instanceof FieldWriteEvent) {
FieldWriteEvent field = (FieldWriteEvent)event;
return new FieldVariableImpl(session, field.getField(), value, field.getTimestamp());
}
}
return null;
}