public Record findRecordById ( String id ) { if ( directory == null ) init ( ) ; Property idprop = config . getIdentityProperties ( ) . iterator ( ) . next ( ) ; for ( Record r : lookup ( idprop , id ) ) if ( r . getValue ( idprop . getName ( ) ) . equals ( id ) ) return r ; return null ; // not found }
Look up record by identity .