throw new IllegalArgumentException("the target component " + component + " is not " + type.getName());
}
}
private String getPluginName() {
BootstrapJSPlugin bootstrapPlugin = component.getClass().getSuperclass().getAnnotation(BootstrapJSPlugin.class);
if (bootstrapPlugin == null) {
throw new IllegalArgumentException("given component does not have Bootstrap JavaScript plugin binding defined");
}
return bootstrapPlugin.name();
}