code: public static String buildId(
  			RecipientKind ownerKind,
  			String domain,
  			String applicationName,
  			String scopedInstancePath ) {
  
  		StringBuilder sb = new StringBuilder();
  		sb.append( "[ " );
  		sb.append( domain );
  		sb.append( " ] " );
  
  		if( ownerKind ==  RecipientKind.DM ) {
  			sb.append( "DM" );
  		} else {
  			sb.append( scopedInstancePath );
  			sb.append( " @ " );
  			sb.append( applicationName );
  		}
  
  		return sb.toString();
  	}
docs: Builds a string identifying a messaging client.
  @param ownerKind {@link RecipientKind#DM} or {@link RecipientKind#AGENTS}
  @param domain the domain
  @param applicationName the application name (only makes sense for agents)
  @param scopedInstancePath the scoped instance path  (only makes sense for agents)
  @return a non-null string