private static final PageFlowFactoriesConfig parsePfFactoriesConfig(Document document) {
Element elem = DomUtils.getChildElementByName(document.getDocumentElement(), "pageflow-factories");
if(elem == null)
return null;
PageFlowFactoryConfig pfFactory = parsePageFlowFactoryConfig(DomUtils.getChildElementByName(elem, "flowcontroller-factory"));
PageFlowFactoryConfig fbbFactoyr = parsePageFlowFactoryConfig(DomUtils.getChildElementByName(elem, "faces-backing-bean-factory"));
return new PageFlowFactoriesConfig(pfFactory, fbbFactoyr);
}