public List<T> fromDMRList(List<ModelNode> dmr) {

        List<T> entities = new LinkedList<T>();

        for(ModelNode item : dmr)
        {
            T entity = fromDMR(item);
            entities.add(entity);
        }

        return entities;
    }
public List < T > fromDMRList ( List < ModelNode > dmr ) { List < T > entities = new LinkedList < T > ( ) ; for ( ModelNode item : dmr ) { T entity = fromDMR ( item ) ; entities . add ( entity ) ; } return entities ; }
Parse a ModelNode of type ModelType.List<p/>
Basically calls {@link #fromDMR(org.jboss.dmr.client.ModelNode)} for each item.

@param dmr a ModelNode
@return a list of entities of type T