contract OraclizeResolver is Controllable {

    address private _address;

    /// @dev Constructor initializes the resolver target and sets up controller authentication.
    /// @param _target initial address of the target contract.
    /// @param _ens is the address of the ENS registry.
    /// @param _controllerName is the registered ENS name for the controller contract.
    constructor(address _target, address _ens, bytes32 _controllerName) Controllable(_ens, _controllerName) public {
        _address = _target;
    }

    /// @return the address of the target contract.
    /// @notice this function is compatible with the oraclize contract API.
    function getAddress() public view returns (address) {
        return _address;
    }

    /// @dev Sets the address of the target contract.
    /// @param _target new address of the target contract.
    function setAddress(address _target) public onlyController {
        _address = _target;
    }
}
/// @title OraclizeResolver implements on-chain contract address resolution.
function setAddress(address _target) public onlyController {
    _address = _target;
}

/// @dev Sets the address of the target contract.
/// @param _target new address of the target contract.