public static void withServerIdImmutability(Procedure fn) { try { SystemEnvironment.enforceServerIdImmutability.set(true); fn.call(); } finally { SystemEnvironment.enforceServerIdImmutability.set(false); } }