Need a way to cast a feature type to simple without losing GML AbstractFeature attributes

Description

Using schema derived featuretypes I have some that includes attributes: name and description.

Now I want to use a SimpleFeatureType which I generate using

DataUtilities.simple( myFeatureType )

The problem lies within this method. There is an ignore list specified to skip those and some other attributes.
from JavaDoc "Also ignores AbstractFeatureType contributions such as name etc..."

1 2 3 4 5 6 7 // HACK HACK!! the parser sets no namespace to the properties so we're // doing a hardcode property name black list final List<String> ignoreList = Arrays.asList( new String[] { "location", "metaDataProperty", "description", "name", "boundedBy" });

So how do I set name, description on my feature?

What is the motivation to do this?

Environment

None

Status

Assignee

Unassigned

Reporter

Tobias

Triage

None

Components

Affects versions

20.0

Priority

High
Configure