- if (route.getType().getLastComponent() != null) {
- final YangInstanceIdentifier actionPath = YangInstanceIdentifier.create(
- new NodeIdentifier(route.getType().getLastComponent()));
- if (!actionPath.isEmpty()) {
- String routeString = actionPath.toString();
- if (routeString.contains(routeName)) {
- actionMap.put(ROUTE_CONSTANT + routeString + NAME_CONSTANT + route.getType(), address);
- }
+ final YangInstanceIdentifier actionPath = YangInstanceIdentifier.of(route.getType().lastNodeIdentifier());
+ if (!actionPath.isEmpty()) {
+ String routeString = actionPath.toString();
+ if (routeString.contains(routeName)) {
+ actionMap.put(ROUTE_CONSTANT + routeString + NAME_CONSTANT + route.getType(), address);