}
if (!role.equals("")) {
interfaceAnnotationMetadata
.addAttribute(new ArrayAttributeValue<StringAttributeValue>(
new JavaSymbolName("authorizedCreateOrUpdateRoles"),
Arrays.asList(new StringAttributeValue(
new JavaSymbolName("bar"), role))));
interfaceAnnotationMetadata
.addAttribute(new ArrayAttributeValue<StringAttributeValue>(
new JavaSymbolName("authorizedReadRoles"), Arrays
.asList(new StringAttributeValue(
new JavaSymbolName("bar"), role))));
interfaceAnnotationMetadata
.addAttribute(new ArrayAttributeValue<StringAttributeValue>(
new JavaSymbolName("authorizedDeleteRoles"), Arrays
.asList(new StringAttributeValue(
new JavaSymbolName("bar"), role))));
}
if (usePermissionEvaluator) {
interfaceAnnotationMetadata.addBooleanAttribute(
"usePermissionEvaluator", true);