def __determine_resource_obj(service, resource):
 path = resource.split('.')
 node = service
 for elem in path:
  try:
   node = getattr(node, elem)()
  except AttributeError:
   raise AttributeError('"{0}" has no attribute "{1}"'.format('.'.join(path[0:path.index(elem)]), elem))
 return node

def __determine_resource_obj ( service , resource ) : path = resource . split ( '.' ) node = service for elem in path : try : node = getattr ( node , elem ) ( ) except AttributeError : raise AttributeError ( '"{0}" has no attribute "{1}"' . format ( '.' . join ( path [ 0 : path . index ( elem ) ] ) , elem ) ) return node
find the desired resource object method container from the service .