code: def _try_optimized_lookup(self, filter_args):
          
          if filter_args is None or len(filter_args) != 1 or \
                  self._oid_prop not in filter_args:
              return None
  
          oid_match = filter_args[self._oid_prop]
          if not isinstance(oid_match, six.string_types) or \
                  not re.match(r'^[a-zA-Z0-9_\-]+$', oid_match):
              return None
  
          # The match string is a plain string (not a reg.expression)
  
          # Construct the resource URI from the filter property
          # and issue a Get <Resource> Properties on that URI
          uri = self._base_uri + '/' + oid_match
  
          try:
              props = self.session.get(uri)
          except HTTPError as exc:
              if exc.http_status == 404 and exc.reason == 1:
                  # No such resource
                  return None
              raise
  
          resource_obj = self.resource_class(
              manager=self,
              uri=props[self._uri_prop],
              name=props.get(self._name_prop, None),
              properties=props)
  
          resource_obj._full_properties = True
  
          return resource_obj
docs: Try to optimize the lookup by checking whether the filter arguments
          specify the property that is used as the last segment in the resource
          URI, with a plain string as match value (i.e. not using regular
          expression matching).
  
          If so, the lookup is performed by constructing the resource URI from
          the specified filter argument, and by issuing a Get Properties
          operation on that URI, returning a single resource object.
  
          Parameters:
  
            filter_args (dict):
              Filter arguments. For details, see :ref:`Filtering`.
  
          Returns:
  
            resource object, or `None` if the optimization was not possible.