bundleContext.getService(facadeReference);
assertNotNull(facade);
final ExtensibleBeanFactory beanFactory = facade.createBeanFactory(this.getClass().getClassLoader());
final DTOSupportDSLService dslService = facade.getDSLService(this.getClass().getClassLoader());
Registry basic = dslService.getRegistry("basic");
if (basic == null) {
beanFactory.registerEntity("SimpleEntity",
"com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntityClass",
"com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntity");
basic = dslService.createRegistry("basic", beanFactory);
basic.dto(SimpleDTOClass.class).alias("SimpleDTO").forEntityGeneric()
.withField("string").and().withField("decimal").and().withField("integer");
basic.dto(ComplexDTOClass.class).alias("ComplexDTO").forEntityGeneric()
.withField("name").and()
.withField("inner")
.dtoBeanKey("SimpleDTO")
.entityBeanKeys("SimpleEntity").and()
.withCollection("collection")