if (array == null)
if (length != Array.getLength(array))
    public Object endContext(Context outerContext) throws AssemblyException    {        if (array == null)        {            array = Array.newInstance(klass, list.size());            for (int i = 0; i < list.size(); i++)                Array.set(array, i, list.get(i));        }        return array;    }