@@ -0,0 +1,964 @@
+package uk.ac.ebi.quickgo.ontology.common.coterm;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 29/09/2016%0A * Time: 16:08%0A * Created with IntelliJ IDEA.%0A */%0Apublic class CoTermLimit %7B%0A%0A    int defaultLimit;%0A%0A    public CoTermLimit(int defaultLimit) %7B%0A        this.defaultLimit = defaultLimit;%0A    %7D%0A%0A    public int workoutLimit(String limit) %7B%0A        int limitNumeric = 0;%0A        if (limit == null) %7B%0A            limitNumeric = defaultLimit;%0A        %7D else %7B%0A            if (LimitValue.FULL.toString().equals(limitNumeric)) %7B%0A                limitNumeric = Integer.MAX_VALUE;%0A            %7D else %7B%0A                try %7B%0A                    limitNumeric = Integer.parseInt(limit);%0A                %7D catch (NumberFormatException e) %7B%0A                    throw new IllegalArgumentException(%22The value for limit co-occurring terms is not ALL, or 0-100%22);%0A                %7D%0A            %7D%0A        %7D%0A        return limitNumeric;%0A    %7D%0A%0A    enum LimitValue%7B%0A        FULL%0A    %7D%0A%7D%0A

Consolidate logic for parsing the value for limit on the number of CoTerms to retrieve in this class.