} catch(IllegalArgumentException iae) { throw new AssemblyException(iae); }
    public void set(int index, Object o) throws AssemblyException    {        if (array == null)        {            if (klass.isInstance(o))                list.add(index, o);            else                throw new AssemblyException(                    new IllegalArgumentException("Argument is not compatible to array component type."));        }        else            Array.set(array, index, o);    }