class AwsEC2Platform extends Platform implements SshBasedExperiment<AwsEC2Container> {

    String getUsernameForImageId (String imageId) {
        final Optional<String> usernameLookup = Optional.ofNullable(getImageIdToUsernameMap().get(imageId));
        usernameLookup.ifPresentOrElse(username -> log.info("Using username {} for SSH", username), () -> log.debug("Using username ec2-user for SSH"));
        return usernameLookup.orElse(DEFAULT_EC2_CLI_USER);
    }

    @Autowired  AwsEC2Platform(AmazonEC2 amazonEC2, ContainerManager containerManager, AwsEC2SelfAwareness awsEC2SelfAwareness);
    private  AwsEC2Platform();

}