DocumentBuilder builder = dbfactory.newDocumentBuilder();
Document doc = builder.parse(file);
Unmarshaller unmarshaller = new Unmarshaller(this.mapper);
ForwardsConfiguration configuration =
(ForwardsConfiguration) unmarshaller.unmarshal((Node) doc);
Iterator it = configuration.getForwards().iterator();
while (it.hasNext())
{
Forward forward = (Forward)it.next();
if (this.forwards.containsKey(forward.getName()))
{
logger.error("ForwardService: already contains Forward key: " + forward.getName());
}
else
{
this.forwards.put(forward.getName(), forward);
}
resyncParamMap(forward.getQueryParams());
}
it = configuration.getPortletForwards().iterator();
while (it.hasNext())
{
PortletForward pf = (PortletForward)it.next();
String key = makePortletForwardKey(pf.getPortlet(), pf.getTarget());
if (this.portletForwards.containsKey(key))