adapted new module api with locale (rometools/rome-modules#22)