private void bindMacroApplicableTo(Element descriptor, MacroPluginModule module) {
Element applicableTo = descriptor.element("applicable-to");
if (applicableTo != null) {
boolean header = Boolean.parseBoolean(applicableTo.attributeValue("header"));
boolean content = Boolean.parseBoolean(applicableTo.attributeValue("content"));
boolean footer = Boolean.parseBoolean(applicableTo.attributeValue("footer"));
List<MacroPluginModule.DocumentArea> applicableList = new ArrayList<MacroPluginModule.DocumentArea>();
if (header) applicableList.add(MacroPluginModule.DocumentArea.HEADER);
if (content) applicableList.add(MacroPluginModule.DocumentArea.CONTENT);
if (footer) applicableList.add(MacroPluginModule.DocumentArea.FOOTER);
MacroPluginModule.DocumentArea[] applicableArray = new MacroPluginModule.DocumentArea[applicableList.size()];