throw new IllegalArgumentException("request is empty"); Utility.validateClassification(req.getClassification()); if (Utility.stringIsNullOrEmpty(req.getHostname())) { throw new IllegalArgumentException("A hostname must be specified"); AuditLogger.logItem(this.getClass().getCanonicalName(), "addMachineAndProcessData", currentUser, "uri=" + req.getHostname(), req.getClassification(), ctx.getMessageContext()); UserIdentityUtil.assertAgentRole(currentUser, "addMachineAndProcessData", req.getClassification(), ctx);