mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetCommandViewImpl.java
@SuppressWarnings("unchecked")
    private void handleList(final Field field, final Object containingObject, final TreeNode treeNode) 
            throws ReflectionsUtilException
    {
        final ParameterizedType listParam = (ParameterizedType)field.getGenericType();
        final Class<?> listClass = (Class<?>)listParam.getActualTypeArguments()[0];
        final List<Object> list = (List<Object>)ReflectionsUtil.retrieveInnerObject(containingObject, field.getName(), 
                field.getType());
        
        final CommandNodeModel listNodeModel = new CommandNodeModel(field.getName(), field.getType(), true, 
                containingObject, m_GrowlUtil);
        final TreeNode listNode = new DefaultTreeNode(listNodeModel, treeNode);
        listNode.setExpanded(true);
        
        for (int i = 0; i < list.size(); i++)
        {
            final Object listObject = list.get(i);
            final boolean isReference = !ReflectionsUtil.isPrimitiveOrWrapper(listClass);
            final CommandNodeModel listItem = new CommandNodeModel(listClass.getSimpleName(), listClass, isReference, 
                    list, m_GrowlUtil);
            listItem.setIndex(i);
            final TreeNode listObjectNode = new DefaultTreeNode(listItem, listNode);
            listObjectNode.setExpanded(true);
            
            if (isReference)
            {
                buildTree(listObject, listObjectNode);
            }
        }
    }
/**
     * Method that handles a field within the command object that is a list object.
     *  
     * @param field
     *          The {@link Field} that represents the list object field in the containing object.
     * @param containingObject
     *          The object that the list object is to be retrieved from.
     * @param treeNode
     *          The {@link TreeNode} that will be the parent node to the list object node.
     * @throws ReflectionsUtilException
     *          Thrown if the list cannot be retrieved from the containing object.
     */
Method that handles a field within the command object that is a list object.

@param field
The  Field that represents the list object field in the containing object.
@param containingObject
The object that the list object is to be retrieved from.
@param treeNode
The  TreeNode that will be the parent node to the list object node.
@throws ReflectionsUtilException
Thrown if the list cannot be retrieved from the containing object.
Method that handles a field within the command object that is a list object . @param field The Field that represents the list object field in the containing object . @param containingObject The object that the list object is to be retrieved from . @param treeNode The TreeNode that will be the parent node to the list object node . @throws ReflectionsUtilException Thrown if the list cannot be retrieved from the containing object .
@SuppressWarnings("unchecked")
    private void handleList(final Field field, final Object containingObject, final TreeNode treeNode) 
            throws ReflectionsUtilException
    {
        final ParameterizedType listParam = (ParameterizedType)field.getGenericType();
        final Class<?> listClass = (Class<?>)listParam.getActualTypeArguments()[0];
        final List<Object> list = (List<Object>)ReflectionsUtil.retrieveInnerObject(containingObject, field.getName(), 
                field.getType());
        final CommandNodeModel listNodeModel = new CommandNodeModel(field.getName(), field.getType(), true, 
                containingObject, m_GrowlUtil);
        final TreeNode listNode = new DefaultTreeNode(listNodeModel, treeNode);
        listNode.setExpanded(true);
        for (int i = 0; i < list.size(); i++)
        {
            final Object listObject = list.get(i);
            final boolean isReference = !ReflectionsUtil.isPrimitiveOrWrapper(listClass);
            final CommandNodeModel listItem = new CommandNodeModel(listClass.getSimpleName(), listClass, isReference, 
                    list, m_GrowlUtil);
            listItem.setIndex(i);
            final TreeNode listObjectNode = new DefaultTreeNode(listItem, listNode);
            listObjectNode.setExpanded(true);
            if (isReference)
            {
                buildTree(listObject, listObjectNode);
            }
        }
    }
@ SuppressWarnings ( "unchecked" ) private void handleList ( final Field field , final Object containingObject , final TreeNode treeNode ) throws ReflectionsUtilException { final ParameterizedType listParam = ( ParameterizedType ) field . getGenericType ( ) ; final Class < ? > listClass = ( Class < ? > ) listParam . getActualTypeArguments ( ) [ 0 ] ; final List < Object > list = ( List < Object > ) ReflectionsUtil . retrieveInnerObject ( containingObject , field . getName ( ) , field . getType ( ) ) ; final CommandNodeModel listNodeModel = new CommandNodeModel ( field . getName ( ) , field . getType ( ) , true , containingObject , m_GrowlUtil ) ; final TreeNode listNode = new DefaultTreeNode ( listNodeModel , treeNode ) ; listNode . setExpanded ( true ) ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { final Object listObject = list . get ( i ) ; final boolean isReference = ! ReflectionsUtil . isPrimitiveOrWrapper ( listClass ) ; final CommandNodeModel listItem = new CommandNodeModel ( listClass . getSimpleName ( ) , listClass , isReference , list , m_GrowlUtil ) ; listItem . setIndex ( i ) ; final TreeNode listObjectNode = new DefaultTreeNode ( listItem , listNode ) ; listObjectNode . setExpanded ( true ) ; if ( isReference ) { buildTree ( listObject , listObjectNode ) ; } } }
Method that handles a field within the command object that is a list object.
Method that handles a field within the command object that is a list object .