question: private < T extends Draft2Resource > T lookForResource ( Draft2ResourceType type , Class < T > clazz ) { List < T > resources = lookForResources ( type , clazz ) ; return resources != null && resources . size ( ) > 0 ? resources . get ( 0 ) : null ; }
target:  Find one resource by type 