* Loads all placeholders for the given document
*
* @return A PlaceHolderResolver holding all values.
*/
protected PlaceHolderResolver loadPlaceholderFiles(final Document document) {
final PlaceHolderResolver placeHolderResolver = new PlaceHolderResolver();
final NodeList tags = document.getElementsByTagName(Constants.PLACE_HOLDERS_TAG);
final int count = tags.getLength();
for (int i = 0; i < count; i++) {
final Element element = (Element) tags.item(i);
final String fileName = element.getAttribute(Constants.PLACE_HOLDERS_FILE_ATTRIBUTE);
if (Tester.isNullOrEmpty(fileName)) {
continue;
}
placeHolderResolver.load(fileName);
}
return placeHolderResolver;
}