mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetCommandMgrImpl.java
@SuppressWarnings("unchecked")
    private void handleField(final Field field, final Object jaxbResponse, final Command localCommand) 
            throws ReflectionsUtilException
    {
        final String fieldName = field.getName();
        final Boolean isSet = ReflectionsUtil.isFieldSet(jaxbResponse, fieldName);

        if (isSet)
        {   
            if (field.getType().equals(List.class))
            {
                final List<Object> newList = (List<Object>)ReflectionsUtil.retrieveInnerObject(jaxbResponse, fieldName, 
                        field.getType());
                final List<Object> oldList = (List<Object>)ReflectionsUtil.retrieveInnerObject(localCommand, fieldName, 
                        field.getType());
                oldList.clear();
                oldList.addAll(newList);
            }
            else
            {
                final Object fieldValue = ReflectionsUtil.retrieveInnerObject(jaxbResponse, fieldName, field.getType());
                ReflectionsUtil.setInnerObject(localCommand, fieldName, fieldValue);
            }
        }
        else
        {
            ReflectionsUtil.unsetField(localCommand, fieldName);
        }
    }
/**
     * Method used to handle setting the value of a field in the local command from the get command response received.
     * 
     * @param field
     *          Field in the response to be set in the local command.
     * @param jaxbResponse
     *          The get command response object.
     * @param localCommand
     *          The local command object.
     * @throws ReflectionsUtilException
     *          Thrown if an error occurs while using the reflections. 
     */
Method used to handle setting the value of a field in the local command from the get command response received.

@param field
Field in the response to be set in the local command.
@param jaxbResponse
The get command response object.
@param localCommand
The local command object.
@throws ReflectionsUtilException
Thrown if an error occurs while using the reflections.
Method used to handle setting the value of a field in the local command from the get command response received . @param field Field in the response to be set in the local command . @param jaxbResponse The get command response object . @param localCommand The local command object . @throws ReflectionsUtilException Thrown if an error occurs while using the reflections .
@SuppressWarnings("unchecked")
    private void handleField(final Field field, final Object jaxbResponse, final Command localCommand) 
            throws ReflectionsUtilException
    {
        final String fieldName = field.getName();
        final Boolean isSet = ReflectionsUtil.isFieldSet(jaxbResponse, fieldName);
        if (isSet)
        {   
            if (field.getType().equals(List.class))
            {
                final List<Object> newList = (List<Object>)ReflectionsUtil.retrieveInnerObject(jaxbResponse, fieldName, 
                        field.getType());
                final List<Object> oldList = (List<Object>)ReflectionsUtil.retrieveInnerObject(localCommand, fieldName, 
                        field.getType());
                oldList.clear();
                oldList.addAll(newList);
            }
            else
            {
                final Object fieldValue = ReflectionsUtil.retrieveInnerObject(jaxbResponse, fieldName, field.getType());
                ReflectionsUtil.setInnerObject(localCommand, fieldName, fieldValue);
            }
        }
        else
        {
            ReflectionsUtil.unsetField(localCommand, fieldName);
        }
    }
@ SuppressWarnings ( "unchecked" ) private void handleField ( final Field field , final Object jaxbResponse , final Command localCommand ) throws ReflectionsUtilException { final String fieldName = field . getName ( ) ; final Boolean isSet = ReflectionsUtil . isFieldSet ( jaxbResponse , fieldName ) ; if ( isSet ) { if ( field . getType ( ) . equals ( List . class ) ) { final List < Object > newList = ( List < Object > ) ReflectionsUtil . retrieveInnerObject ( jaxbResponse , fieldName , field . getType ( ) ) ; final List < Object > oldList = ( List < Object > ) ReflectionsUtil . retrieveInnerObject ( localCommand , fieldName , field . getType ( ) ) ; oldList . clear ( ) ; oldList . addAll ( newList ) ; } else { final Object fieldValue = ReflectionsUtil . retrieveInnerObject ( jaxbResponse , fieldName , field . getType ( ) ) ; ReflectionsUtil . setInnerObject ( localCommand , fieldName , fieldValue ) ; } } else { ReflectionsUtil . unsetField ( localCommand , fieldName ) ; } }
Method used to handle setting the value of a field in the local command from the get command response received.
Method used to handle setting the value of a field in the local command from the get command response received .