public Resource getMissingResource ( final ResourceList resources ) { try { return _withLock ( new Callable < Resource > ( ) { @ Override public Resource call ( ) { return resources . getConflict ( inUse ) ; } } ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Inner callable does not throw exception" ) ; } }
Of the resource in the given resource list return the one that s currently in use .