private final JavaScript installationDetectionScript;
private final Collection<String> required;
private final JSInterface target;
public JavaScriptPageExtension(Class<?> clazz) {
this.target = new JSInterface(clazz);
if (target.getName() == null || target.getName().length() == 0) {
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) {