public static <T extends TypifiedElement> T createTypifiedElementInstance(Class<T> elementClass,
WebElement elementToWrap) {
try {
return newInstance(elementClass, elementToWrap);
} catch (NoSuchMethodException e) {
throw new HtmlElementsException(e);
} catch (InstantiationException e) {
throw new HtmlElementsException(e);
} catch (IllegalAccessException e) {
throw new HtmlElementsException(e);
} catch (InvocationTargetException e) {
throw new HtmlElementsException(e);
}
}