String location = CommandLineUtil.getCommandLineOption(args, "--location", DEFAULT_LOCATION);
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
Location loc = server.getManagementContext().getLocationRegistry().resolve(location);
<BUG>BasicApplication app = (BasicApplication) new WhirrHadoopExample()
.manage(server.getManagementContext());</BUG>
app.start(ImmutableList.of(loc));
Entities.dumpInfo(app);
LOG.info("Press return to shut down the cluster");

String location = CommandLineUtil.getCommandLineOption(args, "--location", DEFAULT_LOCATION);
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
Location loc = server.getManagementContext().getLocationRegistry().resolve(location);
StartableApplication app = new WhirrHadoopExample()
.manage(server.getManagementContext());
app.start(ImmutableList.of(loc));
Entities.dumpInfo(app);
LOG.info("Press return to shut down the cluster");
