private ReplaceTokens createHostnameToken(){
  ReplaceTokens.Token tokenHostname=new ReplaceTokens.Token();
  tokenHostname.setKey(GeneralPropertySet.HOSTNAME);
  String hostname=getPropertyValue(GeneralPropertySet.HOSTNAME);
  if (hostname == null) {
    hostname=DEFAULT_HOSTNAME;
  }
  tokenHostname.setValue(hostname);
  ReplaceTokens replaceHostname=new ReplaceTokens();
  replaceHostname.addConfiguredToken(tokenHostname);
  return replaceHostname;
}

private ReplaceTokens createHostnameToken ( ) { ReplaceTokens . Token tokenHostname = new ReplaceTokens . Token ( ) ; tokenHostname . setKey ( GeneralPropertySet . HOSTNAME ) ; String hostname = getPropertyValue ( GeneralPropertySet . HOSTNAME ) ; if ( hostname == null ) { hostname = DEFAULT_HOSTNAME ; } tokenHostname . setValue ( hostname ) ; ReplaceTokens replaceHostname = new ReplaceTokens ( ) ; replaceHostname . addConfiguredToken ( tokenHostname ) ; return replaceHostname ; }
creates tokens for the ( virtual ) hostname .
