[BOFTWO-1319] Added code to support multiple EM