getStatement.setLong(1, entityId);
resultSet = getStatement.executeQuery();
if (!resultSet.next()) {
throw new NoSuchRecordException(entityMapper.getEntityName()
+ " " + entityId + " doesn't exist.");
}
entity = entityMapper.parseRecord(resultSet);
resultSet.close();