class AbstractClient implements Closeable {

    public static String getUrlEncodedValue(String value) {
        try {
            return StringUtils.replace(
                    new URLCodec().encode(StringUtils.trimToNull(value), getEncoding()),
                    "+", "%20");
        } catch (UnsupportedEncodingException ex) {
            LOGGER.error("Unsupported encoding!", ex);
            return null;
        }
    }

    protected  AbstractClient(String apiBaseUrl, String consumerToken, String consumerSecret);

}