List<IActivityDataObject> result, TextEditActivityDataObject textEdit) {
if (result.size() == 0) {
return textEdit;
}
IActivityDataObject lastActivity = result.get(result.size() - 1);
if (lastActivity instanceof TextEditActivityDataObject) {
TextEditActivityDataObject lastTextEdit = (TextEditActivityDataObject) lastActivity;
if (((lastTextEdit.getSource() == null) || lastTextEdit.getSource()
.equals(textEdit.getSource()))