if (endpointRouter != null) {
routeControl = (RouteControl)
endpointRouter.transportControl(EndpointRouter.GET_ROUTE_CONTROL, null);
RouteAdvertisement route = routeControl.getMyLocalRoute();
if (route != null) {
routeAdvElement = new TextDocumentMessageElement(ROUTEADV,
(XMLDocument) route.getDocument(MimeMediaType.XMLUTF8),
null);
}
}
}