private static boolean isDomElement(final Type type) {
    return type != null && DomElement.class.isAssignableFrom(ClassUtil.getRawType(type));
  }
private static boolean isDomElement(final Type type)