public static DemandDTO getDemandConfigDTO(Demand myDemand) { DemandDTO result = new DemandDTO(); ToolBox.MapObject(myDemand, result, true); result.dynPropValues = myDemand.getRealValues(); return(result); }