final RMIClient rmiClient = AdminChannel.getRMIClient(mInstanceName);
if (rmiClient.getInstanceStatusCode() != Status.kInstanceRunningCode)
{
String msg = localStrings.getString( "admin.server.core.mbean.config.instance_not_running_cannot_restart" );
throw new IllegalStateException( msg );
}
try
{
/* calling restart script */