class CloudFoundryApplicationPlatform extends CloudFoundryPlatform {

    CloudFoundryApplication createApplicationFromApplicationSummary (ApplicationSummary applicationSummary) {
        CloudFoundryApplication container = containerManager.getMatchingContainer(CloudFoundryApplication.class, applicationSummary
                .getName());
        if (container == null) {
            container = CloudFoundryApplication.builder()
                                               .platform(this)
                                               .name(applicationSummary.getName())
                                               .applicationID(applicationSummary.getId())
                                               .containerInstances(applicationSummary.getInstances())
                                               .applicationRoutes(gatherApplicationRoutes(applicationSummary.getName(), applicationSummary
                                                       .getId()))
                                               .build();
            log.debug("Created Cloud Foundry Application Container {} from {}", v(DataDogConstants.DATADOG_CONTAINER_KEY, container), kv("ApplicationSummary", applicationSummary));
            containerManager.offer(container);
        } else {
            log.debug("Found existing Cloud Foundry Application Container {}", v(DataDogConstants.DATADOG_CONTAINER_KEY, container));
        }
        return container;
    }

    @Autowired public  CloudFoundryApplicationPlatform();

}