'Create a container.'

def handle_create(self):

    container = self.physical_resource_name()
    container_headers = SwiftContainer._build_meta_headers('container', self.properties[self.X_CONTAINER_META])
    account_headers = SwiftContainer._build_meta_headers('account', self.properties[self.X_ACCOUNT_META])
    for key in (self.X_CONTAINER_READ, self.X_CONTAINER_WRITE):
        if (self.properties[key] is not None):
            container_headers[key] = self.properties[key]
    LOG.debug('SwiftContainer    create    container    %(container)s    with    container    headers    %(container_headers)s    and    account    headers    %(account_headers)s', {'container': container, 'account_headers': account_headers, 'container_headers': container_headers})
    self.client().put_container(container, container_headers)
    if account_headers:
        self.client().post_account(account_headers)
    self.resource_id_set(container)
