code: public List<String> getAttributesNames() {
          SimpleFeatureType featureType = feature.getFeatureType();
          List<AttributeDescriptor> attributeDescriptors = featureType.getAttributeDescriptors();
  
          List<String> attributeNames = new ArrayList<String>();
          for( AttributeDescriptor attributeDescriptor : attributeDescriptors ) {
              String name = attributeDescriptor.getLocalName();
              attributeNames.add(name);
          }
          return attributeNames;
      }
docs: Getter for the list of attribute names.
  
  @return the list of attribute names.