Simplified implementation of ConnectionFactory