@SuppressWarnings("unchecked")
public static List<ServiceEndpointDescription> getAllRemoteReferences(Bundle b) {
List<Element> references = getAllDescriptionElements(b);
List<ServiceEndpointDescription> srefs = new ArrayList<ServiceEndpointDescription>();
Namespace ns = Namespace.getNamespace(REMOTE_SERVICES_NS);
for (Element ref : references) {
List<String> iNames = getProvidedInterfaces(ref.getChildren(PROVIDE_INTERFACE_ELEMENT, ns));
Map<String, Object> remoteProps = getProperties(ref.getChildren(PROPERTY_ELEMENT, ns));
if (addEndpointID) {
remoteProps.put(ServicePublication.ENDPOINT_ID, UUID.randomUUID().toString());