def create(self, resource, obj,<EOL>operation_timeout=None, max_envelope_size=None, locale=None):
if isinstance(resource, str):<EOL><INDENT>resource = ResourceLocator(resource)<EOL><DEDENT>headers = self._build_headers(resource, Session.CreateAction,<EOL>operation_timeout, max_envelope_size, locale)<EOL>return self.service.invoke(headers, obj)<EOL>
resource can be a URL or a ResourceLocator