public static void uninitJavaControls( ServletContext servletContext, PageFlowManagedObject controlClient )
    {
        Map controlFields = getAccessibleControlFieldAnnotations( controlClient.getClass(), servletContext );

        for ( Iterator i = controlFields.keySet().iterator(); i.hasNext(); )
        {
            Field controlField = ( Field ) i.next();

            try
            {
                Object fieldValue = controlField.get( controlClient );

                if ( fieldValue != null )
                {
                    controlField.set( controlClient, null );
                    destroyControl( fieldValue );
                }
            }
            catch ( IllegalAccessException e )
            {
                LOG.error( "Exception while uninitializing Java Control " + controlField.getName(), e );
            }
        }
    }
public static void uninitJavaControls ( ServletContext servletContext , PageFlowManagedObject controlClient ) { Map controlFields = getAccessibleControlFieldAnnotations ( controlClient . getClass ( ) , servletContext ) ; for ( Iterator i = controlFields . keySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Field controlField = ( Field ) i . next ( ) ; try { Object fieldValue = controlField . get ( controlClient ) ; if ( fieldValue != null ) { controlField . set ( controlClient , null ) ; destroyControl ( fieldValue ) ; } } catch ( IllegalAccessException e ) { LOG . error ( "Exception while uninitializing Java Control " + controlField . getName ( ) , e ) ; } } }
Clean up all member variables that are Java Controls.