try {
// get the 'pool' element and determine if we need to create a DataSource or
// lookup using JNDI
SynapseXPath xpath = new SynapseXPath("self::node()/syn:connection/syn:pool");
xpath.addNamespace("syn", XMLConfigConstants.SYNAPSE_NAMESPACE);
pool = (OMElement) xpath.selectSingleNode(elem);
if (pool.getFirstChildWithName(DSNAME_Q) != null) {
readLookupConfig(mediator, pool);
} else if (pool.getFirstChildWithName(DRIVER_Q) != null) {
readCustomDataSourceConfig(pool, mediator);
} else {