def class_to_array(class_name)
      class_name.to_s.split("::").map{ |m| m.gsub(/[A-Z]/) { |c| "_#{c}"}.gsub(/^_/,"").downcase }
    end
def class_to_array(class_name)
      class_name.to_s.split("::").map{ |m| m.gsub(/[A-Z]/) { |c| "_#{c}"}.gsub(/^_/,"").downcase }
    end
converts a class like EventHub::PlateStore::MyClassName to an array ['event_hub','plate_store','my_class_name']