builder.field("build", nodeInfo.getBuild().hashShort()); if (nodeInfo.getServiceAttributes() != null) { for (Map.Entry<String, String> nodeAttribute : nodeInfo.getServiceAttributes().entrySet()) { builder.field(nodeAttribute.getKey(), nodeAttribute.getValue(), XContentBuilder.FieldCaseConversion.NONE);
out.writeVInt(version.id); Build.writeBuild(build, out); if (getServiceAttributes() == null) { out.writeBoolean(false); } else {