public void restoreResourceRequestInfo ( ResourceRequestInfo resourceRequestInfo ) { List < RequestedNode > requestedNodes = null ; List < String > hosts = resourceRequestInfo . getHosts ( ) ; if ( hosts != null && hosts . size ( ) > 0 ) { requestedNodes = new ArrayList < RequestedNode > ( hosts . size ( ) ) ; for ( String host : hosts ) { requestedNodes . add ( resolve ( host , resourceRequestInfo . getType ( ) ) ) ; } } resourceRequestInfo . nodes = requestedNodes ; }
This method rebuilds members related to a ResourceRequestInfo instance which were not directly persisted themselves .