private StageGraph plan(FlowGraph flowGraph) throws IOException {
assert flowGraph != null;
StagePlanner planner = new StagePlanner(
configuration.getGraphRewriters().getRewriters(),
configuration.getOptions());
StageGraph plan = planner.plan(flowGraph);
if (plan == null) {
for (Diagnostic diagnostic : planner.getDiagnostics()) {
LOG.error(diagnostic.toString());
}
throw new IOException("実行計画の作成に失敗しました");