{
BasicDataSource externalDataSource = new BasicDataSource();
externalDataSource.setDriverClassName( "org.apache.derby.jdbc.EmbeddedDriver" );
externalDataSource.setUrl( "jdbc:derby:memory:testdbexternal;create=true" );
// START SNIPPET: assembly
new ExternalDataSourceAssembler( externalDataSource ).
visibleIn( Visibility.module ).
identifiedBy( "datasource-external-id" ).
withCircuitBreaker( DataSources.newDataSourceCircuitBreaker() ).
assemble( module );
// END SNIPPET: assembly