private static ConfigurationServerSync deepCopy(ConfigurationServerSync source) { if (source == null) { return null; } ConfigurationServerSync copy = new ConfigurationServerSync(); copy.setResponseStatus(source.getResponseStatus()); copy.setConfDeltaBody(source.getConfDeltaBody()); copy.setConfSchemaBody(source.getConfSchemaBody()); return copy; }
if (deltaResponse.getDelta() != null) { try { response.setConfDeltaBody(ByteBuffer.wrap(deltaResponse.getDelta().getData())); } catch (IOException ex) { LOG.error("conf delta invalid: {}", ex);