class PasswordPolicyService {

    void updatePasswordPolicy(FreeIpaClient freeIpaClient) throws FreeIpaClientException {
        PasswordPolicy config = freeIpaClient.getPasswordPolicy();
        Map<String, Object> params = getParameters(config);
        if (!params.isEmpty()) {
            freeIpaClient.updatePasswordPolicy(params);
        }
    }

}