list.add(o);
try { Array.set(array, length++, o); } catch(IllegalArgumentException iae) { throw new AssemblyException(iae); }
    public void addParameterObject(Object o) throws AssemblyException    {        if (!klass.isInstance(o))            throw new AssemblyException(                new IllegalArgumentException(                    "Cannot add object "                        + o                        + " to array where the elements are of class "                        + klass));        list.add(o);    }