try
{
VTICosting vtic = (version2) ? (VTICosting) ps : (VTICosting) rs;
estimatedCost = vtic.getEstimatedCostPerInstantiation(this);
estimatedRowCount = vtic.getEstimatedRowCount(this);
supportsMultipleInstantiations = vtic.supportsMultipleInstantiations(this);
if (ps != null) {
ps.close();
ps = null;
}