@ManagedOperation(description = "Adds the key to the store")
@SuppressWarnings({ "unchecked", "rawtypes" })
public boolean add(final String messageId) {
// Run this in single transaction.
Boolean rc = (Boolean)transactionTemplate.execute(new TransactionCallback() {
public Object doInTransaction(TransactionStatus status) {
int count = jdbcTemplate.queryForInt(QUERY_STRING, processorName, messageId);
if (count == 0) {
jdbcTemplate.update(INSERT_STRING, processorName, messageId);
return Boolean.TRUE;