Refactored API towards using JAXB and hiding file details from generators.