return factory.createLocator(field);
}
private Object decorateContainer(final ClassLoader loader, final Field field) {
final WebElement wrappedElement = proxyForLocator(loader, createLocator(field));
final Container container = containerFactory.create((Class<? extends Container>) field.getType(), wrappedElement);
PageFactory.initElements(new ExtendedFieldDecorator(wrappedElement), container);
return container;
}