mil.dod.th.ose.config/src/mil/dod/th/ose/config/loading/impl/OSGiConfigLoaderImpl.java
private void processPidConfig(final PidConfig pidConfig)
    {
        if (pidConfig.isSetFactoryPid())
        {
            try
            {
                handleFactoryConfig(pidConfig);
                
                m_LogService.info("Successfully created factory configuration from factory with PID: %s", 
                        pidConfig.getFactoryPid());
            }
            catch (final IllegalStateException exception)
            {
                addPendingConfig(pidConfig);
            }
            catch (final IOException | IllegalArgumentException exception)
            {
                m_LogService.error(exception, "An error occurred trying to create factory "
                        + "configuration from factory with PID: %s", pidConfig.getFactoryPid());
            }
        }
        else if (pidConfig.isSetPid())
        {
            try
            {
                handleStandardConfig(pidConfig);
                
                m_LogService.info("Successfully created configuration with PID: %s", 
                        pidConfig.getPid());
            }
            catch (final IllegalStateException exception)
            {
                addPendingConfig(pidConfig);
            }
            catch (final IOException | IllegalArgumentException exception)
            {
                m_LogService.error(exception, 
                        "An error occurred trying to create configuration with PID: %s", 
                        pidConfig.getPid());
            }
        }
    }
/**
     * Create the given configuration in OSGi ConfigAdmin. If metatype data is not yet available, queue it in the
     * pending list to be created when the associated bundle is installed.
     * 
     * @param pidConfig
     *      Configuration to be created or queued for later creation
     */
Create the given configuration in OSGi ConfigAdmin. If metatype data is not yet available, queue it in the
pending list to be created when the associated bundle is installed.

@param pidConfig
Configuration to be created or queued for later creation
Create the given configuration in OSGi ConfigAdmin . If metatype data is not yet available queue it in the pending list to be created when the associated bundle is installed . @param pidConfig Configuration to be created or queued for later creation
private void processPidConfig(final PidConfig pidConfig)
    {
        if (pidConfig.isSetFactoryPid())
        {
            try
            {
                handleFactoryConfig(pidConfig);
                m_LogService.info("Successfully created factory configuration from factory with PID: %s", 
                        pidConfig.getFactoryPid());
            }
            catch (final IllegalStateException exception)
            {
                addPendingConfig(pidConfig);
            }
            catch (final IOException | IllegalArgumentException exception)
            {
                m_LogService.error(exception, "An error occurred trying to create factory "
                        + "configuration from factory with PID: %s", pidConfig.getFactoryPid());
            }
        }
        else if (pidConfig.isSetPid())
        {
            try
            {
                handleStandardConfig(pidConfig);
                m_LogService.info("Successfully created configuration with PID: %s", 
                        pidConfig.getPid());
            }
            catch (final IllegalStateException exception)
            {
                addPendingConfig(pidConfig);
            }
            catch (final IOException | IllegalArgumentException exception)
            {
                m_LogService.error(exception, 
                        "An error occurred trying to create configuration with PID: %s", 
                        pidConfig.getPid());
            }
        }
    }
private void processPidConfig ( final PidConfig pidConfig ) { if ( pidConfig . isSetFactoryPid ( ) ) { try { handleFactoryConfig ( pidConfig ) ; m_LogService . info ( "Successfully created factory configuration from factory with PID: %s" , pidConfig . getFactoryPid ( ) ) ; } catch ( final IllegalStateException exception ) { addPendingConfig ( pidConfig ) ; } catch ( final IOException | IllegalArgumentException exception ) { m_LogService . error ( exception , "An error occurred trying to create factory " + "configuration from factory with PID: %s" , pidConfig . getFactoryPid ( ) ) ; } } else if ( pidConfig . isSetPid ( ) ) { try { handleStandardConfig ( pidConfig ) ; m_LogService . info ( "Successfully created configuration with PID: %s" , pidConfig . getPid ( ) ) ; } catch ( final IllegalStateException exception ) { addPendingConfig ( pidConfig ) ; } catch ( final IOException | IllegalArgumentException exception ) { m_LogService . error ( exception , "An error occurred trying to create configuration with PID: %s" , pidConfig . getPid ( ) ) ; } } }
Create the given configuration in OSGi ConfigAdmin.
Create the given configuration in OSGi ConfigAdmin .