A generic method to resolve options was implemented

It is based on a map which contains the name of the param in args, the name of the param in config value, default value and how to translate the value into an util value