class Route53RaiderImpl implements Route53Raider {

    @Override
    public int getTrafficPolicyVersion(String trafficPolicyName) {
        // UpdateTrafficPolicyInstanceRequest updateTrafficPolicyInstanceRequest = new UpdateTrafficPolicyInstanceRequest().withTrafficPolicyId(trafficPolicyId)
        //  route53Delegator.getAmazonRoute53().updateTrafficPolicyInstance()
        String r53PolicyId = getR53TrafficPolicyId(trafficPolicyName);
        int policyVersion = route53Delegator.getAmazonRoute53().listTrafficPolicyInstances()
                .getTrafficPolicyInstances()
                .parallelStream()
                .filter(tpi -> tpi.getTrafficPolicyId().equalsIgnoreCase(r53PolicyId))
                .map(TrafficPolicyInstance::getTrafficPolicyVersion)
                .collect(Collectors.toList())
                .stream()
                .findFirst()
                .get();

        return policyVersion;

    }

    public  Route53RaiderImpl();

}