}
private static CommitHook newCommitHook(final String name,
final PropertyState state) throws CommitFailedException {
return new CompositeHook(
new ConflictHook(new AnnotatingConflictHandler()),
new EditorHook(new ConflictValidatorProvider()),
new CommitHook() {
@Override
@Nonnull
public NodeState processCommit(NodeState before, NodeState after,