private final JavaScript installationDetectionScript;
private final Collection<String> required;
private final JSTarget target;
public JavaScriptPageExtension(Class<?> clazz) {
this.target = new JSTarget(clazz);
if (target.getName() == null || target.getName().isEmpty()) {
throw new IllegalArgumentException("The JavaScript page extension can be created only for class where @JavaScript annotation defines non empty value(). The given class " + clazz + " is not annotation this way.");
}
Dependency dependency = clazz.getAnnotation(org.jboss.arquillian.graphene.javascript.Dependency.class);
if (dependency != null) {