currency realized with apache math frequency package
Use Apache Configurations to simplify the code.