class FeatureBuilder {

	public static List<List<ScenarioDefinition>> GetScenarios(List<Feature> features) {
		List<List<ScenarioDefinition>> result = new ArrayList<List<ScenarioDefinition>>();
		for (Feature f : features) {
			List<ScenarioDefinition> sc = new ArrayList<ScenarioDefinition>();
			for (Iterator<Node> iterator = f.children().iterator(); iterator.hasNext();) {
				Node n = iterator.next();
				 if (n instanceof ScenarioDefinition) {
						sc.add(((ScenarioDefinition)n));
				 }
			}
			result.add(sc);
		}
		return result;
	}

}