class BridgeUtils {

    public static boolean isMigrationTx(UldTransaction uldTx, Federation activeFederation, Federation retiringFederation, Context uldContext, BridgeConstants bridgeConstants) {
        if (retiringFederation == null) {
            return false;
        }
        boolean moveFromRetiring = isReleaseTx(uldTx, retiringFederation);
        boolean moveToActive = isLockTx(uldTx, activeFederation, uldContext, bridgeConstants);

        return moveFromRetiring && moveToActive;
    }

}