@@ -0,0 +1,1690 @@
+/*%0D%0A * Copyright 2010 The Kuali Foundation.%0D%0A * %0D%0A * Licensed under the Educational Community License, Version 1.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A * %0D%0A * http://www.opensource.org/licenses/ecl1.php%0D%0A * %0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0Apackage org.kuali.kfs.module.endow.businessobject.defaultvalue;%0D%0A%0D%0Aimport org.kuali.kfs.module.endow.EndowConstants;%0D%0Aimport org.kuali.kfs.module.endow.businessobject.AutomatedCashInvestmentModel;%0D%0Aimport org.kuali.kfs.sys.context.SpringContext;%0D%0Aimport org.kuali.rice.kns.lookup.valueFinder.ValueFinder;%0D%0Aimport org.kuali.rice.kns.service.SequenceAccessorService;%0D%0A%0D%0Apublic class NextACIModelIDFinder implements ValueFinder %7B%0D%0A%0D%0A    /**%0D%0A     * @see org.kuali.rice.kns.lookup.valueFinder.ValueFinder#getValue()%0D%0A     */%0D%0A    public String getValue() %7B%0D%0A        return getLongValue().toString();%0D%0A        %0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Gets the next sequence number as a long.%0D%0A     * %0D%0A     * @return next sequence number as a long%0D%0A     */%0D%0A    public static Long getLongValue() %7B%0D%0A%0D%0A        SequenceAccessorService sequenceAccessorService = SpringContext.getBean(SequenceAccessorService.class);%0D%0A        return sequenceAccessorService.getNextAvailableSequenceNumber(EndowConstants.Sequences.END_ACI_SEQ, AutomatedCashInvestmentModel.class);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A%0D%0A

Use SequenceAccessorService to get the next sequence number for the ACI Model ID field.