private Service createServiceFromApp()

in containers-marathon/src/main/java/org/apache/aries/containers/marathon/impl/MarathonServiceManager.java [175:182]


    private Service createServiceFromApp(App app, ServiceConfig cfg) {
        // TODO make this check more thorough
        if (!cfg.getServiceName().equals(app.getLabels().get(SERVICE_NAME)))
            throw new IllegalStateException("Application and configuration don't match");

        ServiceImpl svc = new ServiceImpl(marathonClient, app, cfg);
        return svc;
    }