if (!connectionSharing) { if (connectionHandles.size() > 1) throw new java.lang.IllegalStateException( "Multiple connections associated with this managed " + "connection in non-sharing mode.");   for (Iterator iter = connectionHandles.iterator(); iter.hasNext();) { AbstractConnection connection = (AbstractConnection) iter.next();  try { connection.setManagedEnvironment(managedEnvironment); } catch(SQLException ex) { throw new FBResourceException(ex); } } }
    public void setManagedEnvironment(boolean managedEnvironment) {        this.managedEnvironment = managedEnvironment;    }