protected Object getModelObject( Page page, String modelId )
throws InvocationTargetException, IllegalAccessException
{
for ( Method method : page.getClass().getDeclaredMethods() )
{
GetModel getModelAnnotation = method.getAnnotation( GetModel.class );
if ( getModelAnnotation != null && getModelAnnotation.name().equals( modelId ) )
{
return method.invoke( page );
}
}