final Map data )
{
try
{
final String configFilename = properties.getProperty( CONFIGFILE );
final Configuration original =
ConfigurationUtil.buildFromXML( new InputSource( configFilename ) );
final File home = (File)data.get( HOME_DIR );
final Properties params = new Properties();
params.setProperty( "loom.home", home.getAbsolutePath() );
final Configuration root = ConfigUtil.expandValues( original,
params );
final Configuration configuration = root.getChild( "embeddor" );
final String embeddorClassname = configuration.getAttribute( "class" );
m_embeddor =
(Embeddor)Class.forName( embeddorClassname ).newInstance();
m_logger = createLogger( properties );
ContainerUtil.enableLogging( m_embeddor, m_logger );