Can you clarify what is wrong with the method below.
Damian.
private List<NetworkService> getServicesWithUNIs(List<NetworkService> networkServiceList) {
return select(networkServiceList,
having(on(NetworkService.class).getServiceNetworkElements(),
having(on(ServiceNetworkElement.class).getSwitchList(),
having(on(ServiceSwitch.class).getServicePortList(),
hasItem(having(on(ServicePort.class).getType(), equalTo(L2PortType.UNI)))))));
}