@Override
public MethodResult sendMethodCallWithResult(String portId, String destination, MethodCall call) {
OutgoingPort port = getPort(portId);
MethodCallMessage request = new MethodCallMessage(call, true);
request.setDestination(destination);
MethodResultMessage requestResult = port.sendSync(request);
return requestResult.getResult();
}
private OutgoingPort getPort(String portId) throws OsgiServiceNotAvailableException {
return utilsService.getServiceWithId(OutgoingPort.class, portId);