public class SmartElementProxyCreator implements ElementProxyCreator {
@Override
public void proxyElements(PageObject pageObject, WebDriver driver) {
ElementLocatorFactory finder = getElementLocatorFactorySelector().getLocatorFor(driver);
FieldDecorator decorator = new SmartFieldDecorator(finder, driver, pageObject);
PageFactory.initElements(decorator, pageObject);
}