private static class UnsaveablePageOpenSimulator implements EntityPageLocator {
@Override
public Editor findOpenPage(IntegrationEntity entity) {
GenericEditor editor = new GenericEditor("dummy", "Test") {
@Override
public void save() throws SaveEditorException {
throw new SaveEditorException(this, "I will always fail.");
}
};
editor.setDirty();
return editor;
}