def content_definition_for(content_name)
      if content_definitions.blank?
        log_warning "Element #{name} is missing the content definition for #{content_name}"
        nil
      else
        content_definitions.detect { |d| d['name'] == content_name }
      end
    end
def content_definition_for(content_name)
      if content_definitions.blank?
        log_warning "Element #{name} is missing the content definition for #{content_name}"
        nil
      else
        content_definitions.detect { |d| d['name'] == content_name }
      end
    end
Returns the definition for given content_name