/** * Tries to import the service with each rsa until one import is successful * * @param endpoint endpoint to import * @return import registration of the first successful import */ private ImportRegistration importService(EndpointDescription endpoint) { for (RemoteServiceAdmin rsa : rsaSet) { ImportRegistration ir = rsa.importService(endpoint); if (ir != null) { if (ir.getException() == null) { LOG.debug("Service import was successful {}", ir); return ir; } else { LOG.info("Error importing service " + endpoint, ir.getException()); } } } return null; }
Collection<ExportRegistration> exportRegs = rsa.exportService(sref, addProps);