final PEFileLayout layout = new PEFileLayout(domainConfig);
final TokenValueSet tokens = new TokenValueSet();
final String configRootDir = domainConfig.getConfigRoot();
TokenValue tv = new TokenValue(CONFIG_HOME, configRootDir);
tokens.add(tv);
final String instanceRoot =
layout.getRepositoryDir().getAbsolutePath();
tv = new TokenValue(INSTANCE_ROOT, instanceRoot);
tokens.add(tv);
final String instanceName = (String)domainConfig.get(DomainConfig.K_SERVERID);
if((instanceName == null) || (instanceName.equals("")))
tv = new TokenValue(SERVER_NAME, PEFileLayout.DEFAULT_INSTANCE_NAME);
else
tv = new TokenValue(SERVER_NAME, instanceName);
tokens.add(tv);
tv = new TokenValue(DOMAIN_NAME, domainConfig.getDomainName());
tokens.add(tv);
return ( tokens );