return getByFromHow(defaultElementLocatingStrategy, using);
}
protected By buildByFromLocationStrategy(ImplementsLocationStrategy strategy, Annotation annotation) {
try {
LocationStrategy transformer = strategy.value().newInstance();
return transformer.fromAnnotation(annotation);
} catch (Exception e) {
throw new IllegalStateException("Cannot use locationStrategy " + strategy + " on annotation " + annotation + " on field " + field + ": " + e.getMessage(), e);
}
}