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 = ApplicationBuilder.builder()
</BUG>
.child(BasicEntitySpec.newInstance(JBoss7Server.class)
.configure("war", WAR_PATH)
.configure("httpPort", 8080))

String location = CommandLineUtil.getCommandLineOption(args, "--location", DEFAULT_LOCATION);
BrooklynServerDetails server = BrooklynLauncher.newLauncher()
.webconsolePort(port)
.launch();
Location loc = server.getManagementContext().getLocationRegistry().resolve(location);
StartableApplication app = ApplicationBuilder.builder()
.child(BasicEntitySpec.newInstance(JBoss7Server.class)
.configure("war", WAR_PATH)
.configure("httpPort", 8080))
