added null check on overridingParams
added mergeMaps