JupiterActivity jupiterActivity) {
TransformationResult result = new TransformationResult(
sarosSession.getLocalUser());
Operation op;
try {
op = jupiterClient.receive(jupiterActivity);
} catch (TransformationException e) {
log.error("Error during transformation of: " + jupiterActivity, e);
// TODO this should trigger a consistency check
return result;
}
// Transform to TextEdit so it can be executed locally
for (TextEditActivity textEdit : op.toTextEdit(
jupiterActivity.getPath(), jupiterActivity.getSource())) {
result.executeLocally.add(textEdit);
}