def resource_path_from_qualified_name(qualified_name)
      path_options = path_options_for_qualified_name(qualified_name)

      file_path = ''
      path_options.uniq.each do |path_option|
        file_path = search_for_file(path_option)

        break if file_path.present?
      end

      return file_path if file_path

      # Note that sometimes, the resource_type path may only be defined in a
      # resource type folder
      # So, look for the first file within the resource type folder
      # because of ruby namespacing conventions if there is a file in the folder,
      # it MUST define the namespace
      path_for_first_file_in(path_options.last) || path_for_first_file_in(path_options[-2])
    end
def resource_path_from_qualified_name(qualified_name)
      path_options = path_options_for_qualified_name(qualified_name)

      file_path = ''
      path_options.uniq.each do |path_option|
        file_path = search_for_file(path_option)

        break if file_path.present?
      end

      return file_path if file_path

      # Note that sometimes, the resource_type path may only be defined in a
      # resource type folder
      # So, look for the first file within the resource type folder
      # because of ruby namespacing conventions if there is a file in the folder,
      # it MUST define the namespace
      path_for_first_file_in(path_options.last) || path_for_first_file_in(path_options[-2])
    end
A look for the possible places that various qualified names could be

 @note The Lookup Rules:
   - all resources are plural
   - file_names can either be named after the type or traditional ruby/rails nameing
     i.e.: posts_controller.rb vs controller.rb
   - regular namespacing still applies.
     i.e: Api::V2::CategoriesController should be in
          api/v2/categories/controller.rb

 @note The Pattern:
  - namespace_a                        - api
    - namespace_b                        - v2
      - resource_name (plural)             - posts
        - file_type.rb                       - controller.rb (or posts_controller.rb)
                                             - operations.rb (or post_operations.rb)
        - folder_type                        - operations/   (or post_operations/)
          - related namespaced classes         - create.rb

 All examples assume default resource directory ("resources")
 and show the order of lookup

 @example Api::PostsController
   Possible Locations
    - api/posts/controller.rb
    - api/posts/posts_controller.rb

 @example Api::PostSerializer
   Possible Locations
    - api/posts/serializer.rb
    - api/posts/post_serializer.rb

 @example Api::PostOperations::Create
   Possible Locations
    - api/posts/operations/create.rb
    - api/posts/post_operations/create.rb

 @example Api::V2::CategoriesController
   Possible Locations
    - api/v2/categories/controller.rb
    - api/v2/categories/categories_controller.rb

 @param [String] qualified_name fully qualified class/module name to find the file location for