private <T extends SBResource>T lookForResource(SBResourceType type,Class<T> clazz){
  List<T> resources=lookForResources(type,clazz);
  return resources != null && resources.size() > 0 ? resources.get(0) : null;
}

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