*/
public static void populateHtmlElement(HtmlElement htmlElement, CustomElementLocatorFactory locatorFactory) {
@SuppressWarnings("unchecked")
Class<HtmlElement> htmlElementClass = (Class<HtmlElement>) htmlElement.getClass();
// Create locator that will handle Block annotation
ElementLocator locator = locatorFactory.createLocator(htmlElementClass);
ClassLoader htmlElementClassLoader = htmlElement.getClass().getClassLoader();
// Initialize block with WebElement proxy and set its name
String elementName = getElementName(htmlElementClass);
WebElement elementToWrap = HtmlElementFactory.createNamedProxyForWebElement(htmlElementClassLoader,
locator, elementName);