public ViewInstancePropertyEntity getProperty(String key) {
    for (ViewInstancePropertyEntity viewInstancePropertyEntity : properties) {
      if (viewInstancePropertyEntity.getName().equals(key)) {
        return viewInstancePropertyEntity;
      }
    }
    return null;
  }
Get the instance property entity for the given key.

@param key the key
@return the instance property entity identified by the given key
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java