Modified config to detect and work on Maps3. Possibly sde connection can be used just like file gdb path, so code will stay the same.