lib/vcloud-rest/vcloud/catalog.rb
def get_catalog_item_by_name(catalogId, catalogItemName)
      result = nil
      catalogElems = get_catalog(catalogId)

      catalogElems[:items].each do |k, v|
        if (k.downcase == catalogItemName.downcase)
          result = get_catalog_item(v)
        end
      end

      result
    end
def get_catalog_item_by_name(catalogId, catalogItemName)
      result = nil
      catalogElems = get_catalog(catalogId)

      catalogElems[:items].each do |k, v|
        if (k.downcase == catalogItemName.downcase)
          result = get_catalog_item(v)
        end
      end

      result
    end
def get_catalog_item_by_name ( catalogId , catalogItemName ) result = nil catalogElems = get_catalog ( catalogId ) catalogElems [ :items ] . each do | k , v | if ( k . downcase == catalogItemName . downcase ) result = get_catalog_item ( v ) end end result end
friendly helper method to fetch an catalogItem  by name
 - catalogId (use get_catalog_name(org, name))
 - catalagItemName
friendly helper method to fetch an catalogItem by name - catalogId ( use get_catalog_name ( org name )) - catalagItemName