String locations = CommandLineUtil.getCommandLineOption(args, "--locations", Joiner.on(",").join(DEFAULT_LOCATIONS));
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
List<Location> locs = new LocationRegistry().getLocationsById(Arrays.asList(locations));
<BUG>BasicApplication app = (BasicApplication) new GlobalWebFabricExample()
</BUG>
.appDisplayName("Brooklyn Global Web Fabric Example")
.manage(server.getManagementContext());
app.start(locs);

String locations = CommandLineUtil.getCommandLineOption(args, "--locations", Joiner.on(",").join(DEFAULT_LOCATIONS));
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
List<Location> locs = new LocationRegistry().getLocationsById(Arrays.asList(locations));
StartableApplication app = new GlobalWebFabricExample()
.appDisplayName("Brooklyn Global Web Fabric Example")
.manage(server.getManagementContext());
app.start(locs);
