code: public static String getSessionTypeName(ResourceAddress address) {
          String externalURI = address.getExternalURI();
          return URIUtils.getScheme(externalURI);
      }
docs: Create a descriptive string for the type of connection that this session has been created on. This is generally just used
  in the Command Center. The following is the same as the insides of ResourceAddress.getProtocol(), which is private. NOTE:
  we're using BridgeSession.LOCAL_ADDRESS.get(session) to retrieve the address to send to management.