return applicationFactory.newApplicationAssembly( new Assembler()
{
public void assemble( ModuleAssembly module )
throws AssemblyException
{
new LayerName( "Plugin layer" ).assemble( module );
new ModuleName( "Plugin module" ).assemble( module );
LayerAssembly layer = module.layer();
// In a real case you would "detect" the plugins somehow. Here the plugin assembler is hardcoded