getOneOptional<T> method
- Gets an optional component reference that matches specified locator.
-
locator
the locator to find references by.
- Returns a matching component reference or null if nothing was found.
-
locator
the locator to find references by.