</BUG>
return checkNotNull(app, "must only be called after manage()");
}
protected abstract void doBuild();
<BUG>public final Application manage() {
</BUG>
return manage(Entities.newManagementContext());
}
<BUG>public final Application manage(ManagementContext managementContext) {
</BUG>
checkNotManaged();

return addChild(createEntity(spec));
}
protected final ManagementContext getManagementContext() {
return checkNotNull(managementContext, "must only be called after manage()");
}
protected final StartableApplication getApp() {
return checkNotNull(app, "must only be called after manage()");
}
protected abstract void doBuild();
public final StartableApplication manage() {
return manage(Entities.newManagementContext());
}
public final StartableApplication manage(ManagementContext managementContext) {
checkNotManaged();
