@Override
public List<Rule> createRules() {
List<Rule> rules = new ArrayList<Rule>();
final XMLRuleParser xmlParser = new XMLRuleParser();
if(!fileName().equals("")) {
final InputStream xmlStream = getClass().getResourceAsStream(fileName());
rules.addAll(xmlParser.parse(xmlStream));
for (File userExtensionXml : fileSystem.getExtensions(repositoryKey, "xml")) {
rules.addAll(xmlRuleParser.parse(userExtensionXml));
}
}