Common scala code for GDS scala applications