String computeTopic(JsTopicName jsTopicName, String topic) {
		StringBuilder result = new StringBuilder();
		if (!jsTopicName.prefix().isEmpty()) {
			result.append(jsTopicName.prefix()).append(Constants.Topic.COLON);
		}
		result.append(topic);
		if (!jsTopicName.postfix().isEmpty()) {
			result.append(Constants.Topic.COLON).append(jsTopicName.postfix());
		}
		return result.toString();
	}
String computeTopic ( JsTopicName jsTopicName , String topic ) { StringBuilder result = new StringBuilder ( ) ; if ( ! jsTopicName . prefix ( ) . isEmpty ( ) ) { result . append ( jsTopicName . prefix ( ) ) . append ( Constants . Topic . COLON ) ; } result . append ( topic ) ; if ( ! jsTopicName . postfix ( ) . isEmpty ( ) ) { result . append ( Constants . Topic . COLON ) . append ( jsTopicName . postfix ( ) ) ; } return result . toString ( ) ; }
Compute full topicname from jsTopicName.prefix, topic and jsTopicName.postfix
@param jsTopicName
@param topic
@return