class GlacierUploaderOptionParser extends OptionParser {

    public String parseEndpointToRegion(String endpointOptionValue) {
        String region = endpointOptionValue;

        final Matcher matcher = REGION_REGEX_PATTERN.matcher(endpointOptionValue);
        if(matcher.matches()) {
            region = matcher.group("region");
            LOG.debug("Endpoint parsed: {}", region);
        }

        return region;
    }

    public  GlacierUploaderOptionParser(final Configuration config);

}