Fixed org.hibernate.NonUniqueObjectException
added flush:true to Autoreply.processKeyword and CustomActivity.processKeyword