code: public boolean send(RoxPayload payload) throws MalformedURLException {
  
  		final URL payloadResourceUrl = getPayloadResourceUrl();
  		if (payloadResourceUrl == null) {
  			return false;
  		}
  
  		LOGGER.info("Connected to ROX Center API at {}", configuration.getServerConfiguration().getApiUrl());
  
  		// Print the payload to the outout stream
  		if (configuration.isPayloadPrint()) {
  			OutputStreamWriter payloadOsw = null;
  			try {
  				payloadOsw = new OutputStreamWriter(System.out);
  				serializer.serializePayload(payloadOsw, payload, true);
  			} catch (IOException ioe) {
  			} finally {
  				if (payloadOsw != null) {
  					try {
  						payloadOsw.close();
  					} catch (IOException closeIoe) {
  					}
  				}
  			}
  		}
  
  		// Try to send the payload optimized
  		optimizeStart();
  		boolean result = sendPayload(payloadResourceUrl, optimize(payload), true);
  		optimizeStop(result);
  
  		// If the payload was not sent optimized, try to send it non-optimized
  		if (!result) {
  			result = sendPayload(payloadResourceUrl, payload, false);
  		}
  
  		return result;
  	}
docs: Send a payload to ROX
  
  @param payload The payload to send
  @return True if the payload successfully sent to ROX
  @throws MalformedURLException