public void setSubResourceNames(Collection<String> subResourceNames) {
    String s = subResourceNames.toString();
    this.subResourceNames = subResourceNames.size() > 0 ? s.substring(1, s.length()-1) : null;
  }
Set the sub-resource names.

@param subResourceNames  the sub-resource names
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewResourceEntity.java