code: public Object getOneOptional(Object locator) {
  		try {
  			List<Object> components = find(Object.class, locator, false);
  			return components.size() > 0 ? components.get(0) : null;
  		} catch (Exception ex) {
  			return null;
  		}
  	}
docs: Gets an optional component reference that matches specified locator.
  
  @param locator the locator to find references by.
  @return a matching component reference or null if nothing was found.