protected void writeAMF3Collection(Collection<?> c) throws IOException {
    	if (debugMore) debug("writeAMF3Collection(c=", c, ")");

        ArrayCollection ac = (c instanceof ArrayCollection ? (ArrayCollection)c : new ArrayCollection(c));
        writeAMF3Object(ac);
    }