}
else if (nodeName.equalsIgnoreCase("walker_route"))
{
int id = Integer.parseInt(secondElement.attributeValue("id"));
WalkerRouteType type = secondElement.attributeValue("type") == null ? WalkerRouteType.LENGTH : WalkerRouteType.valueOf(secondElement.attributeValue("type").toUpperCase());
WalkerRoute walkerRoute = new WalkerRoute(id, type);
for (Iterator<?> nextIterator = secondElement.elementIterator(); nextIterator.hasNext(); )
{
org.dom4j.Element nextElement = (org.dom4j.Element)nextIterator.next();
Location loc = Location.parse(nextElement);
NpcString phrase = nextElement.attributeValue("phrase_id") == null ? null : NpcString.valueOf(Integer.parseInt(nextElement.attributeValue("phrase_id").toUpperCase()));
int socialActionId = nextElement.attributeValue("social_action_id") == null ? -1 : Integer.parseInt(nextElement.attributeValue("social_action_id"));
int delay = nextElement.attributeValue("delay") == null ? 0 : Integer.parseInt(nextElement.attributeValue("delay"));
boolean running = nextElement.attributeValue("running") == null ? false : Boolean.parseBoolean(nextElement.attributeValue("running"));
walkerRoute.addPoint(new WalkerRoutePoint(loc, phrase, socialActionId, delay, running));
}
template.addWalkerRoute(walkerRoute);
}
else if (nodeName.equalsIgnoreCase("random_actions"))
{