LogConfiguration logconfiguration = null;
LogConfiguration logconfiguration = null; LogConfigurationDataLocal logconfigdata = null;
    public LogConfiguration loadLogConfiguration(int caid){        // Check if log configuration exists, else create one.      LogConfiguration logconfiguration = null;        try{        logconfigurationdata = logconfigurationhome.findByPrimaryKey(new Integer(caid));        logconfiguration = logconfigurationdata.loadLogConfiguration();      }catch(FinderException e){         try{           logconfiguration = new LogConfiguration();           logconfigurationdata = logconfigurationhome.create(new Integer(caid),logconfiguration);         }catch(CreateException f){           throw new EJBException(f);         }      }      return logconfiguration;    } // loadLogConfiguration