final int size = featureVector.size();
for (int i = 1; i <= size; i++) {
final FeatureValue featureValue = featureVector.getFeatureValue(i-1);
if (featureValue != null && !(excludeNullValues == true && featureValue.isNullValue())) {
if (!featureValue.isMultiple()) {
SingleFeatureValue singleFeatureValue = (SingleFeatureValue)featureValue;
final int index = featureMap.getIndex(i, singleFeatureValue.getIndexCode());
if (index != -1 && singleFeatureValue.getValue() != 0) {
featureList.add(index,singleFeatureValue.getValue());
}
}
else { //if (featureValue instanceof MultipleFeatureValue) {
for (Integer value : ((MultipleFeatureValue)featureValue).getCodes()) {
final int v = featureMap.getIndex(i, value);