createConnection Parameter must compatible with interface