public void saveMapping(Application application, String mapFile) throws MappingException {
MapperConfig mapperConfig = new MapperConfig();
java.util.Collection variables = application.getVariables();
for (Iterator it = variables.iterator(); it.hasNext();) {
Variable variable = new Variable();
fr.norsys.mapper.console.model.Variable v = (fr.norsys.mapper.console.model.Variable)it.next();
BeanUtils.copyFilledProperties(variable, v);
mapperConfig.addVariable(variable);
}