//lock for application startup and shutdown
synchronized( entry )
{
final String name = entry.getProfile().getMetaData().getName();
Application application = entry.getApplication();
if( null == application )
{
try
{
final Application newApp = new DefaultApplication();
final Logger childLogger =
getLogger().getChildLogger( name );
org.codehaus.dna.impl.ContainerUtil.enableLogging(
newApp, childLogger );
final ApplicationContext context =
createApplicationContext( entry );
newApp.setApplicationContext( context );
org.codehaus.dna.impl.ContainerUtil.initialize( newApp );
application = newApp;
}