if (o instanceof Collection){ Iterator it = (((Collection)o).iterator()); while (it.hasNext()) { write(it.next()); } } if (!(o instanceof PersistenceCapable)) { throw new IllegalArgumentException( "Data class " + o.getClass().getName() + " has not been JDO-enhanced"); }
	public void write(Object o) {		PersistenceManager pm = getPM();		pm.currentTransaction().begin();		pm.makePersistent(o);		pm.currentTransaction().commit();		pm.close();	}