I am working on a java application so that I can interface a Raspberry Pi as a web-socket client to receive scene switch events and determine if and which camera is part of that scene. Once a camera is recognized, I use a GPIO relay to turn on the Tally light associated with that camera. Web-socket server IP and password is input through system properties and camera name and associated GPIO pin is input through an XML file. This way multiple cameras can be defined without application changes. The issue I am having is how to define the object call to sceneitemproperties to query if the camera name is a source within the scene that is raised by the event. Any help would be appreciated. Currently the project is private, but suggestions are welcome.
current code snippet attached:
current code snippet attached: