143144145146147148149150151152153154155156157158
{ parentMode = parent.getMode(); } // Get the @Mode annotation Mode annotation = description.getAnnotation( Mode.class ); if ( annotation == null ) { return parentMode; } else { return annotation.value(); } }