The class clearly says return true to veto.
public interface PreInsertEventListener extends Serializable { /** * Return true if the operation should be vetoed */ public boolean onPreInsert(PreInsertEvent event); }
Is that the problem with your code?