/** {@inheritDoc} */
  @Override
  public int hashCode() {
    int res = nodeId != null ? nodeId.hashCode() : 0;

    res = 31 * res + (cfg != null ? cfg.hashCode() : 0);

    return res;
  }
  /** {@inheritDoc} */
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    GridServiceDeployment that = (GridServiceDeployment) o;

    if (cfg != null ? !cfg.equals(that.cfg) : that.cfg != null) return false;

    if (nodeId != null ? !nodeId.equals(that.nodeId) : that.nodeId != null) return false;

    return true;
  }