added ConnectionInfo interface and method getConnectionInfo to CommandContext to isolate responsibility