}
try {
final SqlRowSet rowSet = (SqlRowSet) this.jdbcTemplate.query(
this.selectSql,
new Object[] {this.applicationId},
new SqlRowSetResultSetExtractor());
final Timestamp expDate = getExpirationDate();
if (!rowSet.next()) {
// No row exists for this applicationId so create it.
// Row is created with uniqueId of this instance
// which indicates the lock is initially held by this instance.