* @return A {@link List} of {@link IndexesXml} instances representing one or
* more parsed Yaml documents.
* @throws YamlException If the Yaml parser has trobule parsing.
*/
private static List<IndexesXml> parseMultiple(Reader yaml, IndexesXml xml) throws YamlException {
YamlReader reader = new YamlReader(yaml);
reader.getConfig().setPropertyElementType(IndexYaml.class, "indexes", IndexYaml.Index.class);
reader.getConfig().setPropertyElementType(
IndexYaml.Index.class, "properties", IndexYaml.Property.class);
List<IndexesXml> list = new LinkedList<IndexesXml>();
while (true) {
IndexYaml indexYaml = reader.read(IndexYaml.class);
if (null == indexYaml) {
break;
} else {
list.add(indexYaml.toXml(xml));
}