mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetCommandViewImpl.java
private void removeComplextObject(final CommandNodeModel nodeObject)
    {
        final Object containingObject = nodeObject.getContainingObject();
        final Object innerObject;
        try
        {
            innerObject = ReflectionsUtil.retrieveInnerObject(containingObject, nodeObject.getName(), 
                    nodeObject.getType());
        }
        catch (final ReflectionsUtilException exception)
        {
            m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, REFLECTIONS_SET_ERROR_TITLE, 
                    String.format(REFLECTIONS_SET_ERROR_MSG, nodeObject.getName()), exception);
            return;
        }

        if (innerObject != null)
        {
            try
            {
                ReflectionsUtil.setInnerObject(containingObject, nodeObject.getName(), null);
            }
            catch (final ReflectionsUtilException exception)
            {
                m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, REFLECTIONS_SET_ERROR_TITLE, 
                        String.format(REFLECTIONS_SET_ERROR_MSG, nodeObject.getName()), exception);
            }
        }
    }
/**
     * Method that sets a reference object within the command to null.
     * 
     * @param nodeObject
     *          {@link CommandNodeModel} that represents the reference object to be removed.
     */
Method that sets a reference object within the command to null.

@param nodeObject
CommandNodeModel that represents the reference object to be removed.
Method that sets a reference object within the command to null . @param nodeObject CommandNodeModel that represents the reference object to be removed .
private void removeComplextObject(final CommandNodeModel nodeObject)
    {
        final Object containingObject = nodeObject.getContainingObject();
        final Object innerObject;
        try
        {
            innerObject = ReflectionsUtil.retrieveInnerObject(containingObject, nodeObject.getName(), 
                    nodeObject.getType());
        }
        catch (final ReflectionsUtilException exception)
        {
            m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, REFLECTIONS_SET_ERROR_TITLE, 
                    String.format(REFLECTIONS_SET_ERROR_MSG, nodeObject.getName()), exception);
            return;
        }
        if (innerObject != null)
        {
            try
            {
                ReflectionsUtil.setInnerObject(containingObject, nodeObject.getName(), null);
            }
            catch (final ReflectionsUtilException exception)
            {
                m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_ERROR, REFLECTIONS_SET_ERROR_TITLE, 
                        String.format(REFLECTIONS_SET_ERROR_MSG, nodeObject.getName()), exception);
            }
        }
    }
private void removeComplextObject ( final CommandNodeModel nodeObject ) { final Object containingObject = nodeObject . getContainingObject ( ) ; final Object innerObject ; try { innerObject = ReflectionsUtil . retrieveInnerObject ( containingObject , nodeObject . getName ( ) , nodeObject . getType ( ) ) ; } catch ( final ReflectionsUtilException exception ) { m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_ERROR , REFLECTIONS_SET_ERROR_TITLE , String . format ( REFLECTIONS_SET_ERROR_MSG , nodeObject . getName ( ) ) , exception ) ; return ; } if ( innerObject != null ) { try { ReflectionsUtil . setInnerObject ( containingObject , nodeObject . getName ( ) , null ) ; } catch ( final ReflectionsUtilException exception ) { m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_ERROR , REFLECTIONS_SET_ERROR_TITLE , String . format ( REFLECTIONS_SET_ERROR_MSG , nodeObject . getName ( ) ) , exception ) ; } } }
Method that sets a reference object within the command to null.
Method that sets a reference object within the command to null .