try {
namemeth.setAccessible(true);
} catch (RuntimeException e) { /* deliberately empty */
}
Object[] values = (Object[])valsmeth.invoke(null, (Object[])null);
SimpleTypeElement simple = new SimpleTypeElement();
SimpleRestrictionElement restr = new SimpleRestrictionElement();
restr.setBase(Types.STRING_QNAME);
for (int i = 0; i < values.length; i++) {
Enumeration enumel = new Enumeration();
enumel.setValue(namemeth.invoke(values[i], (Object[])null).toString());
restr.getFacetsList().add(enumel);
}
simple.setDerivation(restr);
addDocumentation(detail.getCustom().getClassInformation(), simple);
return simple;
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {