if (setStatusInternal.getStatus() == SetResponseStatus.SUCCESS) { if (req.getData() != null) { Connection con = Utility.getPerformanceDBConnection(); PreparedStatement cmd = null; try { for (int i = 0; i < req.getData().getItems().size(); i++) { if (!Utility.stringIsNullOrEmpty(req.getData().getItems().get(i).getName()) && !Utility.stringIsNullOrEmpty(req.getData().getItems().get(i).getValue())) { cmd.setString(1, req.getURI()); cmd.setLong(2, req.getTimeStamp().getTimeInMillis()); cmd.setString(3, req.getData().getItems().get(i).getName()); cmd.setString(4, req.getData().getItems().get(i).getValue()); } catch (Exception ex) { log.log(Level.ERROR, "unable to save extended status data", ex);