Splitting pooling and servlet code