'Return a proxy for the given resource.'

def __getitem__(self, resource_name):

    if (resource_name not in self._resources):
        res_proxy = ResourceProxy(resource_name, self.resource_definition(resource_name), self._resource_data.get(resource_name))
        self._resources[resource_name] = res_proxy
    return self._resources[resource_name]
