void compileForWebMode(ModuleDef module, Set<String> userAgents)
throws UnableToCompleteException {
if (userAgents != null && !userAgents.isEmpty()) {
Properties props = module.getProperties();
Property userAgent = props.find("user.agent");
if (userAgent instanceof BindingProperty) {
BindingProperty bindingProperty = (BindingProperty) userAgent;
bindingProperty.setAllowedValues(bindingProperty.getRootCondition(),
userAgents.toArray(new String[0]));
}