/**
   * Adds the specified <code>newProperty</code> to the specified <code>entityPropertiesWrapper
   * </code>.
   *
   * @param entityPropertiesWrapper the {@link Properties} instance of a given entity
   * @param newProperty the {@link Property} instance to be added to the specified <code>
   *     entityPropertiesWrapper</code>
   */
  private void addNewPropertyToCurrentPropertyList(
      Properties entityPropertiesWrapper, Property newProperty) {

    if (newProperty.isId()) {
      // Id Property should be first in the properties list
      entityPropertiesWrapper.getProperties().add(0, newProperty);
    } else {
      entityPropertiesWrapper.getProperties().add(newProperty);
    }
  }