public boolean register(final String serviceId, final ServiceMetadata serviceMetadata)
throws Exception {
HelixManager helixManager =
HelixManagerFactory.getZKHelixManager(cluster, serviceId, InstanceType.PARTICIPANT,
zkAddress);
LiveInstanceInfoProvider liveInstanceInfoProvider = new LiveInstanceInfoProvider() {
@Override
public ZNRecord getAdditionalLiveInstanceInfo() {
// serialize serviceMetadata to ZNRecord
ZNRecord rec = new ZNRecord(serviceId);
rec.setSimpleField("HOST", serviceMetadata.getHost());