String location = CommandLineUtil.getCommandLineOption(args, "--location", Joiner.on(",").join(DEFAULT_LOCATIONS));
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
List<Location> locs = new LocationRegistry().getLocationsById(ImmutableList.of(location));
<BUG>BasicApplication app = server.getManagementContext().getEntityManager().createEntity(BasicEntitySpec.newInstance(BasicApplication.class)
</BUG>
.displayName("Brooklyn Global Web Fabric with Hadoop Example")
.impl(WebFabricWithHadoopExample.class));
Entities.startManagement(app, server.getManagementContext());

String location = CommandLineUtil.getCommandLineOption(args, "--location", Joiner.on(",").join(DEFAULT_LOCATIONS));
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
List<Location> locs = new LocationRegistry().getLocationsById(ImmutableList.of(location));
StartableApplication app = server.getManagementContext().getEntityManager().createEntity(BasicEntitySpec.newInstance(StartableApplication.class)
.displayName("Brooklyn Global Web Fabric with Hadoop Example")
.impl(WebFabricWithHadoopExample.class));
Entities.startManagement(app, server.getManagementContext());
