title: build a java list from properties file
body: <p>I have an a list of stores(getStore(..))s, which is getting all the stores from DB </p>
  
  <p>what I'm trying to do is to add additional stores from properties file.(trying to build the list)</p>
  
  <p>here's how my properties file look like</p>
  
  <pre><code>yard=1085:BELF:BELGRADE FIXTURES
  yard=3238:SKWS:SKOKIE WAREHOUSE
  yard=3239:PLDC:PLANO DC
  yard=3339:HCDC:HOLIDAY CITY DC
  </code></pre>
  
  <p>here's how I'm trying to get the list.</p>
  
  <pre><code>@Value("#{'${yard}'.split(',')}#{T(java.util.Collections).emptyList()}") 
  private List&lt;String&gt; myList;
  </code></pre>
  
  <p>here how I'm trying to add the additional stores to the list</p>
  
  <pre><code>    public List&lt;Store&gt; additionalYardList() {
      List&lt;Store&gt; stores = storesApi.getStores();
      for (String yard : myList) {
          String[] yardArray = yard.split(":");
          Store store = new Store();
          store.setNumber(Integer.parseInt(yardArray[0]));
          store.setAbbr(yardArray[1]);
          store.setName(yardArray[2]);
          LOG.debug(store.getAbbr());
          stores.add(store);
      }
      return stores;
  }
  </code></pre>
  
  <p>Then will do a Stream to merge</p>
  
  <pre><code>    public List&lt;Store&gt; getAllStores() {
      return Stream.of(additionalYardList(), storesApi.getStores()).flatMap(List::stream).collect(Collectors.toList());
  }
  </code></pre>
  
  <p>}</p>
  
  <p>My Store object fields are: (number- abbr - name )</p>
  
  <p>Nothing is been added to that list, Any idea what am I missing?</p>