return new AppServerConnectionPoolDataSource(dataSource); }
if (getObjectInstanceMethod == null) getObjectInstanceMethod = objectFactory.getClass().getMethod( "getObjectInstance", new Class[]{Reference.class, Name.class, Context.class, Hashtable.class});  AbstractFBConnectionPoolDataSource dataSource = (AbstractFBConnectionPoolDataSource) getObjectInstanceMethod .invoke(objectFactory, new Object[]{ref, name, nameCtx, environment});  return new AppServerConnectionPoolDataSource(dataSource); }
    public Object getObjectInstance(Object obj, Name name, Context nameCtx,            Hashtable environment) throws Exception {        if (!(obj instanceof Reference)) return null;        Reference passedRef = (Reference) obj;        passedRef = (Reference) passedRef.clone();        if (!getClass().getName().equals(passedRef.getClassName()))            return null;        Reference ref = new Reference(FBConnectionPoolDataSource.class                .getName(), FBConnectionPoolDataSource.class.getName(), null);        convertReference(ref, passedRef);        FBConnectionPoolDataSource objectFactory = new FBConnectionPoolDataSource();        FBConnectionPoolDataSource dataSource = (FBConnectionPoolDataSource) objectFactory                .getObjectInstance(ref, name, nameCtx, environment);        return new AppServerConnectionPoolDataSource(dataSource);    }