question: XMenuItemPeer [ ] copyItems ( ) { synchronized ( getMenuTreeLock ( ) ) { return ( XMenuItemPeer [ ] ) items . toArray ( new XMenuItemPeer [ ] { } ) ; } }
target:  Thread-safely creates a copy of the items vector