response.getPolicy().setPolicyRefreshRate(df.newDuration(results.getLong("PolicyRefreshRate"))); response.getPolicy().setRecordedMessageCap(results.getInt("RecordedMessageCap")); SecurityWrapper wrap = new SecurityWrapper(ClassificationType.fromValue(results.getString("classification")), results.getString("caveat")); response.setClassification(wrap); response.getPolicy().setAgentsEnabled(results.getBoolean("agentsenable")); foundPolicy = true; comm.setString(4, ""); comm.execute(); response.getPolicy().setRecordedMessageCap(1024000); response.getPolicy().setClassification(new SecurityWrapper(ClassificationType.U, "")); response.getPolicy().setAgentsEnabled(true); } catch (SQLException ex) { log.log(Level.ERROR, "error setting global policy", ex); if (d != null && d.getKeyNameValue() != null) { try { response.getPolicy().setUDDIPublishRate(df.newDuration(Long.parseLong(d.getKeyNameValue().getPropertyValue()))); } catch (Exception ex) { response.getPolicy().setUDDIPublishRate(df.newDuration(30 * 60 * 100));