public Object getOneRequired ( Object locator ) throws ReferenceException { List < Object > components = find ( Object . class , locator , true ) ; return components . size ( ) > 0 ? components . get ( 0 ) : null ; }
Gets a required component reference that matches specified locator .