}
processMethodContext.removeMethod(defaultMethod);
final FacetedMethod facetedMethod = processMethodContext.getFacetHolder();
if (facetedMethod.containsDoOpFacet(ActionDefaultsFacet.class)) {
throw new MetaModelException(cls + " uses both old and new default syntax for " + actionMethod.getName() + "(...) - must use one or other");
}
// add facets directly to parameters, not to actions
final FacetedMethodParameter paramAsHolder = parameters.get(i);
FacetUtil.addFacet(new ActionParameterDefaultsFacetViaMethod(defaultMethod, paramAsHolder));