package org.ovirt.engine.core.vdsbroker.irsbroker;

import org.ovirt.engine.core.common.vdscommands.UpdateSpmHostNameVDSCommandParameters;
import org.ovirt.engine.core.compat.StringHelper;

public class UpdateSpmHostNameVDSCommand<P extends UpdateSpmHostNameVDSCommandParameters> extends IrsBrokerCommand<P> {
    public UpdateSpmHostNameVDSCommand(P parameters) {
        super(parameters);
    }

    // overriding ExecuteVDSCommand in order not to wait in getIrsProxy locking
    @Override
    protected void ExecuteVDSCommand() {
        // only if hostName in IrsProxy cache is the same as sent hostName
        // update to new hostName
        if (StringHelper.EqOp(getCurrentIrsProxyData().getmCurrentIrsHost(), getParameters().getOldHostName())) {
            getCurrentIrsProxyData().setmCurrentIrsHost(getParameters().getNewHostName());
        }
    }
}

@@ -45,16 +45,60 @@
 roker;%0A%0A
+import org.apache.commons.lang.StringUtils;%0A
 import o
@@ -179,58 +179,8 @@
 ers;
-%0Aimport org.ovirt.engine.core.compat.StringHelper;
 %0A%0Apu
@@ -652,19 +652,20 @@
 ring
-Helper.EqOp
+Utils.equals
 (get

Replace StringHelper with StringUtils in UpdateSpmHostNameVDSCommand.