class ClouderaManagerClusterDecomissionService implements ClusterDecomissionService {

    @Override
    public void restartStaleServices() throws CloudbreakException {
        try {
            applicationContext.getBean(ClouderaManagerModificationService.class, stack, clientConfig)
                    .restartStaleServices(clouderaManagerApiFactory.getMgmtServiceResourceApi(client),
                            clouderaManagerApiFactory.getClustersResourceApi(client));
        } catch (ApiException e) {
            LOGGER.error("Couldn't restart stale services", e);
            throw new CloudbreakException("Couldn't restart stale services", e);
        }
    }

    public  ClouderaManagerClusterDecomissionService(Stack stack, HttpClientConfig clientConfig);

}