private AnnotationMetadataBuilder getRooWebScaffoldAnnotation(
final JavaType entity, final Set<String> disallowedOperations,
final String path, final JavaSymbolName pathName) {
final List<AnnotationAttributeValue<?>> rooWebScaffoldAttributes = new ArrayList<AnnotationAttributeValue<?>>();
rooWebScaffoldAttributes.add(new StringAttributeValue(pathName, path));
rooWebScaffoldAttributes.add(new ClassAttributeValue(
new JavaSymbolName("formBackingObject"), entity));
for (final String operation : disallowedOperations) {
rooWebScaffoldAttributes.add(new BooleanAttributeValue(
new JavaSymbolName(operation), false));
}