Remove setPublicApiKey method as it's not supposed to be used server side - add fallback implementation of uuid4