String result = template;
if ( isTemplateString( template ) )
{
final String myName = getName();
final OldDomainMBean oldDomain = getOldConfigProxies().getOldDomainMBean();
try
{
result = oldDomain.resolveTokens( template, myName);
}
catch( Exception e )
{
getMBeanLogger().warning( "Can't resolve: " + template + ", " + e);
e.printStackTrace();
throw new IllegalArgumentException( template );
}
}
return( result );