// create the endpoint id
IServiceProperties serviceProperties = serviceInfo.getServiceProperties();
final byte[] endpointBytes =
serviceProperties.getPropertyBytes(ECFServicePublication.PROP_KEY_ENDPOINT_CONTAINERID);
if (endpointBytes == null)
throw new IDCreateException(
"ServiceEndpointDescription endpointBytes cannot be null");
final String endpointStr = new String(endpointBytes);
final String namespaceStr =
serviceProperties.getPropertyString(ECFServicePublication.PROP_KEY_ENDPOINT_CONTAINERID_NAMESPACE);
if (namespaceStr == null) {
throw new IDCreateException(
"ServiceEndpointDescription namespaceStr cannot be null");
}
endpointId = IDFactory.getDefault().createID(namespaceStr,
endpointStr);
}