class PolicyClientImpl implements PolicyClient {

    @Override
    public Config getConfigWithPolicyName(String policyName) {
        PolicyRestClient client = this.getPolicyRestClient(PolicyServiceType.GET_CONFIG);
        ConfigRequestParameters configReqParameters = new ConfigRequestParameters();
        configReqParameters.setPolicyName(policyName);
        PolicyConfig[] policyConfigList = client.post(configReqParameters, PolicyConfig[].class);
        PolicyConfig policyConfig = null;
        if (policyConfigList.length > 1) {
            logger.debug("Too many configs for policyName: " + policyName);
            return null;
        }
        try {
            policyConfig = policyConfigList[0];
            return this.getConfigFromStringJson(policyConfig.getConfig());
        } catch (IOException e) {
            logger.error(e.getMessage());
            return null;
        }
    }

    public  PolicyClientImpl();

}