code: public Map<String, String> getHeaders(String type, Object target) {
          HeadersAccessor accessor = getHeadersAccessor(type);
          if (accessor != null) {
              Map<String, String> ret = accessor.getHeaders(target);
              return ret;
          }
          return null;
      }
docs: This method attempts to provide headers for the supplied target
  object.
  
  @param type The target type
  @param target The target instance
  @return The header map