code: public <T> T getOneOptional(Class<T> type, String name) {
  		Object locator = find(name);
  		return locator != null ? _references.getOneOptional(type, locator) : null;
  	}
docs: Gets one optional dependency by its name and matching to the specified type.
  
  @param type the Class type that defined the type of the result.
  @param name the dependency name to locate.
  @return a dependency reference or null of the dependency was not found