class DefaultHttpHeaderManager implements HttpHeaderManager {

    @Override
    public int getIntHeader(String name) throws NumberFormatException {
        int result = -1;
        if (headers.containsKey(name.toUpperCase(locale))) {
            DefaultHttpHeader header = headers.get(name.toUpperCase(locale));
            try {
                result = Integer.parseInt(header.getValue());
            } catch (NumberFormatException exception) {
                throw new NumberFormatException(
                        "Cannot convert header to an int");
            }
        }
        return result;
    }

    public  DefaultHttpHeaderManager();

}