@Override
  public @Nullable String getElementName(DomElement element) {
    buildMethodMaps();
    Object o = getNameObject(element);
    return o == null || o instanceof String ? (String)o : ((GenericValue<?>)o).getStringValue();
  }
@Override
  public @Nullable String getElementName(DomElement element)