ResultSet resultSet = null;
long answer = 0;
try {
String sql = "SELECT ts FROM " + tableName + " WHERE codigo='" + id + "'";
PersistenceMechanism pm = PersistenceMechanism.getInstance();
stmt = (Statement) pm.getCommunicationChannel();
resultSet = stmt.executeQuery(sql);
if (resultSet.next()) {
answer = resultSet.getLong(1);
} else {
throw new RuntimeException("ERRO no aspecto TimestampAspectHealthWatcher ##2");