protected Parameter createPageParameter ( ParameterContext context ) { ModelReference intModel = createModelRefFactory ( context ) . apply ( resolver . resolve ( Integer . TYPE ) ) ; return new ParameterBuilder ( ) . name ( getPageName ( ) ) . parameterType ( PAGE_TYPE ) . modelRef ( intModel ) . description ( PAGE_DESCRIPTION ) . build ( ) ; }
Create a page parameter . Override it if needed . Set a default value for example .