class Boroughs {

    public static int parseInt(String boroughCodeOrName)
    {
        // TODO revisit this logic?
        // If argument is a parse-able integer, return it regardless of validity as an actual borough code
        if (NumberUtils.isParsable(boroughCodeOrName))
        {
            return Integer.valueOf(boroughCodeOrName);
        }

        Borough borough = fromName(boroughCodeOrName);

        if(borough != null) {
            return Integer.valueOf(borough.getCode());
        }

        return UNPARSABLE_BOROUGH_CODE_SENTINEL_VALUE;
    }

    private  Boroughs();

}