private AccessPredicateConfigAttribute find ( final Collection < ConfigAttribute > attributes ) { for ( final ConfigAttribute attribute : attributes ) { if ( attribute instanceof AccessPredicateConfigAttribute ) { return ( AccessPredicateConfigAttribute ) attribute ; } } return null ; }
Finds the first AccessPredicateConfigAttribute in the given collection .