/* <summary>
    * This method retrieves configuration information from the app.config file
    *</summary>
    */
 private void getConfiguration()
 {
     configMgr = new ConfigurationManager();
     migrationConfig = configMgr.getMigrationConfiguration();
 }
 /*
  * This method returns the MigrationConfiguration object
  */
 public MigrationConfiguration getMigrationConfiguration()
 {
     return migrationConfig = configFactory.MigrationConfiguration;
 }
        /*
         * This method returns the MigrationConfiguration object
         */
        public MigrationConfiguration getMigrationConfiguration()
        {
            try
                {

                    migrationConfig = configFactory.getMigrationConfiguration();
                }
                catch (Exception e)
                {
                    log.Debug("Error getting MigrationConfiguration object from ConfigurationFactory: " + e.ToString());
                }
                return migrationConfig;
        }
        internal MigrationConfiguration getMigrationConfiguration()
        {
            if (migrationConfig == null)
            {
                try
                {
                    migrationConfig = System.Configuration.ConfigurationManager.GetSection("MigrationSettings") as MigrationConfiguration;
                }
                catch (Exception e)
                {

                    log.Debug("Error retrieving Migration Settings: " + e.StackTrace);
                    throw new ApplicationException("ConfigurationFactory::getMigrationConfiguration - error retrieving Migration settings:" + e.StackTrace);
                }
            }
            return migrationConfig;
        }