AuditLogger.logItem(this.getClass().getCanonicalName(), "getStatus", currentUser, "", (req.getClassification()), ctx.getMessageContext()); UserIdentityUtil.assertReadAccess(req.getURI(), currentUser, "getStatus", req.getClassification(), ctx); Connection con = Utility.getConfigurationDBConnection(); PreparedStatement com = null; com.setString(1, req.getURI()); rs = com.executeQuery(); int records = 0; cal.setTimeInMillis(rs.getLong("utcdatetime")); t.setTimeStamp((cal)); t.setLastStatusChangeTimeStamp(GetLastChangeTimeStamp(req.getURI())); ret = t; records++; log.log(Level.ERROR, "multiple records for uri " + req.getURI() + " detected. This is unexpected"); throw new NullPointerException("Internal error, see server logs for reason."); ret.setLastStatusChangeTimeStamp(GetLastChangeTimeStamp(req.getURI())); ret.setClassification(getCurrentClassificationLevel()); return ret;