public void setName(String name) {
    if (! name.contains("/")) {
      throw new IllegalArgumentException("Invalid dependency name specified in stack.  " +
                                         "Expected form is: serviceName/componentName");
    }
    this.name = name;
    int idx = name.indexOf('/');
    serviceName = name.substring(0, idx);
    componentName = name.substring(idx + 1);
  }
Setter for name property.

@param name the name of the component which is the dependency
            in the form serviceName/componentName
ambari-server/src/main/java/org/apache/ambari/server/state/DependencyInfo.java