The code I wrote based on the article you provided works well on my local setup, but will it function properly in the cloud environment?List<String> agentIds = (List<String>) event.getProperty("agentIds");
logger.info("It is published to the PUBLISH isntance: {}", agentIds.contains("publish"));