code: protected boolean handleResourceHeader(String key, String value) {
          if (ResourceResponse.HTTP_STATUS_CODE.equals(key)) {
              this.portletResourceOutputHandler.setStatus(Integer.parseInt(value));
              return true;
          }
          if ("Content-Type".equals(key)) {
              final ContentType contentType = ContentType.parse(value);
              final Charset charset = contentType.getCharset();
              if (charset != null) {
                  this.portletResourceOutputHandler.setCharacterEncoding(charset.name());
              }
              this.portletResourceOutputHandler.setContentType(contentType.getMimeType());
              return true;
          }
          if ("Content-Length".equals(key)) {
              this.portletResourceOutputHandler.setContentLength(Integer.parseInt(value));
              return true;
          }
          if ("Content-Language".equals(key)) {
              final HeaderElement[] parts = BasicHeaderValueParser.parseElements(value, null);
              if (parts.length > 0) {
                  final String localeStr = parts[0].getValue();
                  final Locale locale = LocaleUtils.toLocale(localeStr);
                  this.portletResourceOutputHandler.setLocale(locale);
                  return true;
              }
          }
  
          return false;
      }
docs: Handles resource response specific headers. Returns true if the header was consumed by this
  method and requires no further processing
  
  @return