}
return null;
}
public static QueueXml parse(Reader yaml) {
YamlReader reader = new YamlReader(yaml);
reader.getConfig().setPropertyElementType(QueueYaml.class,
"queue",
QueueYaml.Entry.class);
reader.getConfig().setPropertyElementType(QueueYaml.Entry.class,
"acl",
QueueYaml.AclEntry.class);
try {
QueueYaml queueYaml = reader.read(QueueYaml.class);
if (queueYaml == null) {
throw new AppEngineConfigException("Empty queue configuration.");
}
return queueYaml.toXml();
} catch (YamlException ex) {