protected String buildObjectCodeCachingKey(ObjectCode objectCode) {
   return objectCode.getUniversityFiscalYear()
       + KRADConstants.Maintenance.LOCK_AFTER_VALUE_DELIM
       + objectCode.getChartOfAccountsCode()
       + KRADConstants.Maintenance.LOCK_AFTER_VALUE_DELIM
       + objectCode.getFinancialObjectCode();
 }
 protected Collection<SubObjectCode> getAssociatedSubObjects(ObjectCode objectCode) {
   Map<String, Object> fieldValues = new HashMap<String, Object>();
   fieldValues.put(
       KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, objectCode.getUniversityFiscalYear());
   fieldValues.put(
       KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, objectCode.getChartOfAccountsCode());
   fieldValues.put(
       KFSPropertyConstants.FINANCIAL_OBJECT_CODE, objectCode.getFinancialObjectCode());
   return businessObjectService.findMatching(SubObjectCode.class, fieldValues);
 }
 protected boolean isInactivatingObjectCode(ObjectCode objectCode) {
   ObjectCodeService objectCodeService = SpringContext.getBean(ObjectCodeService.class);
   if (!objectCode.isActive()) {
     ObjectCode objectCodeFromDB =
         objectCodeService.getByPrimaryId(
             objectCode.getUniversityFiscalYear(),
             objectCode.getChartOfAccountsCode(),
             objectCode.getFinancialObjectCode());
     if (objectCodeFromDB != null && objectCodeFromDB.isActive()) {
       return true;
     }
   }
   return false;
 }