class RelationManagerInitializer implements Disposable {

    private final RelationManager temp;
    private final RelationManager target;

    public RelationManagerInitializer(RelationManager manager) {
        temp = RelationManagerHolder.hold;
        target = manager;
        RelationManagerHolder.hold = manager;
    }

    @Override
    public void dispose() {<FILL_FUNCTION_BODY>}
}

        if (RelationManagerHolder.hold == target) {
            RelationManagerHolder.hold = temp;
        }
    
<no_super_class>