public Date extractTimestamp ( XEvent event ) { XAttributeTimestamp timestampAttribute = ( XAttributeTimestamp ) event . getAttributes ( ) . get ( KEY_TIMESTAMP ) ; if ( timestampAttribute == null ) { return null ; } else { return timestampAttribute . getValue ( ) ; } }
Extracts from a given event the timestamp .