representation.setId(deviceId);
restConnector.post(newDeviceRequestsUri(), NEW_DEVICE_REQUEST, representation);
}
private void acceptNewDeviceRequest(String deviceId) {
NewDeviceRequestRepresentation representation = new NewDeviceRequestRepresentation();
representation.setStatus("ACCEPTED");
restConnector.put(newDeviceRequestUri(deviceId), NEW_DEVICE_REQUEST, representation);
}