private void handleTeleportMessage(String path){
  if (path.equals("/cities")) {
    syncCitiesToWear();
  }
 else   if (path.startsWith("tickets")) {
    syncTicketsToWear(path);
  }
 else   if (path.startsWith("sentTicket")) {
    sentTicket(path);
  }
 else   if (path.startsWith("openTicket")) {
    openTicketInPhone(path);
  }
}

private void handleTeleportMessage ( String path ) { if ( path . equals ( "/cities" ) ) { syncCitiesToWear ( ) ; } else if ( path . startsWith ( "tickets" ) ) { syncTicketsToWear ( path ) ; } else if ( path . startsWith ( "sentTicket" ) ) { sentTicket ( path ) ; } else if ( path . startsWith ( "openTicket" ) ) { openTicketInPhone ( path ) ; } }
handle all messages here .
