a[p2] = p1;
a[p1] = p2;
    static java.lang.Object[] set_array_element(java.lang.Object[] p0, java.lang.Object p1, int p2) {        java.lang.Object[] a = null;                if (p0 != null) {            // If the array length is exceeded, a new array with extended length            // is created and delivered back.            if (p2 >= p0.length) {                a = ArrayHandler.extend_array(p0);                        } else {                            a = p0;            }            //?? Temporary: Remove old and add new java tree node./*??            ArrayHandler.remove_tree_node(p0[i]);            ArrayHandler.add_tree_node(p1);*/            // Set element.            a[p2] = p1;        } else {            LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not set array element. The array is null.");        }                return a;    }