public AttributeTypeInfoConfig(AttributeType attributeType) {
name = attributeType.getName();
minOccurs = 1;
maxOccurs = 1;
NameSpaceTranslatorFactory nsFactory = NameSpaceTranslatorFactory.getInstance();
NameSpaceTranslator nst = nsFactory.getNameSpaceTranslator("xs");
NameSpaceElement nse = nst.getElement(name);
if (nse == null) {
nse = nst.getDefaultElement(attributeType.getType());
}
if (nse == null) {
nst = nsFactory.getNameSpaceTranslator("gml");
nse = nst.getElement(name);
if (nse == null) {
nse = nst.getDefaultElement(attributeType.getType());
}
}