<BUG>connection = __getConnection();__grantDirectResourceCreatePermissions(connection,</BUG><CONTEXT>__assertResourceClassSpecified(resourceClassName);__assertDomainSpecified(domainName);__assertPermissionsSpecified(resourceCreatePermissions);__assertPermissionsSetNotEmpty(resourceCreatePermissions);try {<extra_id_0>accessorResource,resourceClassName,domainName,</CONTEXT>
accessorResource = __resolveResource(connection, accessorResource);__setDirectResourceCreatePermissions(connection,