private static CommonConnDef createConnDef(String jndiName) throws ValidateException {
CommonPoolImpl pool = new CommonPoolImpl(null, null, false, false, FlushStrategy.FAILING_CONNECTION_ONLY);
CommonTimeOutImpl timeOut = new CommonTimeOutImpl(null, null, null, null, null);
CommonSecurityImpl security = null;
Recovery recovery = new Recovery(new CredentialImpl(null, null, null), null, Boolean.FALSE);
CommonValidationImpl validation = new CommonValidationImpl(null, null, false);
return new CommonConnDefImpl(Collections.<String, String>emptyMap(), RAMANAGED_CONN_FACTORY, jndiName, HQ_CONN_DEF, true, true, true, pool, timeOut, validation, security, recovery);
}