class VideoUtil {

   @Nullable
   public static Address getActorFromPersonId(UUID placeId, @Nullable UUID personId) {
      if(personId == null) {
         return null;
      }
      if(IrisUUID.isTime(personId)) { // time uuid means alarm incident
         return Address.platformService(personId, AlarmIncidentCapability.NAMESPACE);
      }
      else if(personId.getMostSignificantBits() == 0) { // MSB of 0 means rule
         return Address.platformService(placeId, RuleCapability.NAMESPACE, (int) personId.getLeastSignificantBits());
      }
      else if(personId.getMostSignificantBits() == 1) { // MSB of 1 means scene
         return Address.platformService(placeId, SceneCapability.NAMESPACE, (int) personId.getLeastSignificantBits());
      }
      else { // everything else is a person
         return Address.platformService(personId, PersonCapability.NAMESPACE);
      }
   }

   private  VideoUtil();

}