prop.putAll(properties);
updateProperties(prop, converted, null);
final PoolConfiguration config = build(PoolProperties.class, converted);
config.setDataSource(ds);
final ConnectionPool pool;
try {
pool = new ConnectionPool(config);
} catch (SQLException e) {
throw new IllegalStateException(e);
}
return build(TomEEDataSource.class, new TomEEDataSource(config, pool, name), converted);
}