public BagObject getBagObject ( int index ) { Object object = getObject ( index ) ; try { return ( BagObject ) object ; } catch ( ClassCastException exception ) { log . warn ( "Cannot cast value type (" + object . getClass ( ) . getName ( ) + ") to BagObject for index (" + index + ")" ) ; } return null ; }
Retrieve an indexed element and return it as a BagObject .