/** * This Methods returns the default Remote-Container-Configuration, coming from the * Main-Container. * * @param preventUsageOfAlreadyUsedComputers the prevent usage of already used computers * @return the RemoteContainerConfig * @throws ServiceException the service exception */ private RemoteContainerConfig broadcastGetAutoRemoteContainerConfig() throws ServiceException { logger.debug("Start request for the default remote container configuration!"); String sliceName = null; try { LoadServiceSlice slice = (LoadServiceSlice) getSlice(MAIN_SLICE); sliceName = slice.getNode().getName(); logger.debug( "Start request for the default remote container configuration at container " + sliceName); return slice.getAutoRemoteContainerConfig(); } catch (ServiceException | IMTPException t) { // NOTE that slices are always retrieved from the main and not from the cache --> No need to // retry in case of failure logger.warn( "Error while trying to get the default remote container configuration from " + sliceName, t); } return null; }