cfg.setExternalResources(new ExternalResourceDescription[] { desc, desc2, desc3, desc4,
desc5, desc6 });
// define bindings
ExternalResourceBinding binding1 = new ExternalResourceBinding_impl();
binding1.setKey("myDataKey");
binding1.setResourceName("myData");
ExternalResourceBinding binding2 = new ExternalResourceBinding_impl();
binding2.setKey("myCustomObjectKey");
binding2.setResourceName("myCustomObject");
ExternalResourceBinding binding3 = new ExternalResourceBinding_impl();
binding3.setKey("myLanguageResourceKey");
binding3.setResourceName("myLanguageResource");
ExternalResourceBinding binding4 = new ExternalResourceBinding_impl();
binding4.setKey("myLanguageResourceObjectKey");
binding4.setResourceName("myLanguageResourceObject");
ExternalResourceBinding binding5 = new ExternalResourceBinding_impl();
binding5.setKey("myResourceWithSpaceInPathKey");
binding5.setResourceName("myResourceWithSpaceInPath");
ExternalResourceBinding binding6 = new ExternalResourceBinding_impl();
binding6.setKey("myResourceWithFilePathNotUrl");
binding6.setResourceName("myResourceWithFilePathNotUrl");
cfg.setExternalResourceBindings(new ExternalResourceBinding[] { binding1, binding2, binding3,
binding4, binding5, binding6 });
mManager.initializeExternalResources(cfg, TEST_CONTEXT_NAME, null);