Program: 90584
Project: 90584
Buggy source:
@Override public void serveResource(ResourceRequest portletReq,ResourceResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  PrintWriter writer=portletResp.getWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  ClassChecker cc=new ClassChecker(portletReq.getClass());
  TestResult tr0=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
  String parm=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
  if (parm == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr0.setTcSuccess(true);
    tr0.appendTcDetail("String_Node_Str");
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
  String parm1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
  if (parm1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      portletReq.getPortletInputStream();
      tr1.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr1.setTcSuccess(true);
    }
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
  String parm2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
  if (parm2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getPortletInputStream();
      tr2.setTcSuccess(true);
      tr2.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr2.setTcSuccess(true);
    }
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
  String setchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
  if (setchar1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1,rurl);
    tb.writeTo(writer);
  }
 else {
    portletReq.setCharacterEncoding("String_Node_Str");
    String getcharcode=portletReq.getCharacterEncoding();
    if (getcharcode != null && getcharcode.equals("String_Node_Str")) {
      tr3.setTcSuccess(true);
    }
 else {
      tr3.appendTcDetail("String_Node_Str" + getcharcode);
    }
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
  String setchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
  if (setchar2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getParameter("String_Node_Str");
      portletReq.setCharacterEncoding("String_Node_Str");
      tr4.setTcSuccess(true);
      tr4.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr4.setTcSuccess(true);
    }
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
  String setchar3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
  if (setchar3 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      portletReq.setCharacterEncoding("String_Node_Str");
      tr5.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr5.setTcSuccess(true);
    }
  }
  tr5.writeTo(writer);
  TestResult tr6=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
  String setchar4=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
  if (setchar4 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr6.setTcSuccess(true);
    }
  }
  tr6.writeTo(writer);
  TestResult tr7=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
  String getread1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
  if (getread1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr7.setTcSuccess(true);
    tr7.appendTcDetail("String_Node_Str");
  }
  tr7.writeTo(writer);
  TestResult tr8=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
  String getread2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
  if (getread2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getPortletInputStream();
      portletReq.getReader();
      tr8.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr8.setTcSuccess(true);
    }
catch (    Throwable t) {
      tr8.appendTcDetail("String_Node_Str" + t.toString());
    }
  }
  tr8.writeTo(writer);
  TestResult tr9=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
  String getread3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
  if (getread3 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      tr9.setTcSuccess(true);
      tr9.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr9.setTcSuccess(true);
    }
  }
  tr9.writeTo(writer);
  TestResult tr10=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
  String getread5=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
  if (getread5 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      portletReq.getReader();
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr10.setTcSuccess(true);
    }
  }
  tr10.writeTo(writer);
  TestResult tr11=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
  String getchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
  if (getchar1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1,rurl);
    tb.writeTo(writer);
  }
 else {
    String getCharEncde=portletReq.getCharacterEncoding();
    if (getCharEncde != null) {
      tr11.setTcSuccess(true);
    }
 else {
      tr11.appendTcDetail("String_Node_Str");
    }
  }
  tr11.writeTo(writer);
  TestResult tr12=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
  String getchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
  if (getchar2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2,rurl);
    tb.writeTo(writer);
  }
 else {
    tr12.setTcSuccess(true);
    tr12.appendTcDetail("String_Node_Str");
  }
  tr12.writeTo(writer);
  TestResult tr13=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
  String getCnt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
  if (getCnt1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr13.setTcSuccess(true);
    tr13.appendTcDetail("String_Node_Str");
  }
  tr13.writeTo(writer);
  TestResult tr14=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
  String getCnt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
  if (getCnt2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2,rurl);
    tb.writeTo(writer);
  }
 else {
    tr14.setTcSuccess(true);
    tr14.appendTcDetail("String_Node_Str");
  }
  tr14.writeTo(writer);
  TestResult tr15=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
  String getLngt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
  if (getLngt1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr15.setTcSuccess(true);
  }
  tr15.writeTo(writer);
  TestResult tr16=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
  String getLngt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
  if (getLngt2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2,rurl);
    tb.writeTo(writer);
  }
 else {
    int getConLgt=portletReq.getContentLength();
    if (getConLgt == -1) {
      tr16.setTcSuccess(true);
    }
 else {
      tr16.appendTcDetail("String_Node_Str" + getConLgt);
    }
  }
  tr16.writeTo(writer);
  TestResult tr17=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
  String getMethd=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
  if (getMethd == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD,rurl);
    tb.writeTo(writer);
  }
 else {
    String getmethod=portletReq.getMethod();
    if (getmethod != null) {
      tr17.setTcSuccess(true);
    }
 else {
      tr17.appendTcDetail("String_Node_Str" + getmethod);
    }
  }
  tr17.writeTo(writer);
}

Fixed version (ground truth):
@Override public void serveResource(ResourceRequest portletReq,ResourceResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  PrintWriter writer=portletResp.getWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  TestResult tr0=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
  String parm=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
  if (parm == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr0.setTcSuccess(true);
    tr0.appendTcDetail("String_Node_Str");
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
  String parm1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
  if (parm1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      portletReq.getPortletInputStream();
      tr1.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr1.setTcSuccess(true);
    }
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
  String parm2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
  if (parm2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETPORTLETINPUTSTREAM3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getPortletInputStream();
      tr2.setTcSuccess(true);
      tr2.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr2.setTcSuccess(true);
    }
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
  String setchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
  if (setchar1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING1,rurl);
    tb.writeTo(writer);
  }
 else {
    portletReq.setCharacterEncoding("String_Node_Str");
    String getcharcode=portletReq.getCharacterEncoding();
    if (getcharcode != null && getcharcode.equals("String_Node_Str")) {
      tr3.setTcSuccess(true);
    }
 else {
      tr3.appendTcDetail("String_Node_Str" + getcharcode);
    }
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
  String setchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
  if (setchar2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getParameter("String_Node_Str");
      portletReq.setCharacterEncoding("String_Node_Str");
      tr4.setTcSuccess(true);
      tr4.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr4.setTcSuccess(true);
    }
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
  String setchar3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
  if (setchar3 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      portletReq.setCharacterEncoding("String_Node_Str");
      tr5.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr5.setTcSuccess(true);
    }
  }
  tr5.writeTo(writer);
  TestResult tr6=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
  String setchar4=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
  if (setchar4 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_SETCHARACTERENCODING4,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr6.setTcSuccess(true);
    }
  }
  tr6.writeTo(writer);
  TestResult tr7=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
  String getread1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
  if (getread1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr7.setTcSuccess(true);
    tr7.appendTcDetail("String_Node_Str");
  }
  tr7.writeTo(writer);
  TestResult tr8=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
  String getread2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
  if (getread2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER2,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getPortletInputStream();
      portletReq.getReader();
      tr8.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr8.setTcSuccess(true);
    }
catch (    Throwable t) {
      tr8.appendTcDetail("String_Node_Str" + t.toString());
    }
  }
  tr8.writeTo(writer);
  TestResult tr9=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
  String getread3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
  if (getread3 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER3,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.getReader();
      tr9.setTcSuccess(true);
      tr9.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr9.setTcSuccess(true);
    }
  }
  tr9.writeTo(writer);
  TestResult tr10=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
  String getread5=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
  if (getread5 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETREADER5,rurl);
    tb.writeTo(writer);
  }
 else {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      portletReq.getReader();
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr10.setTcSuccess(true);
    }
  }
  tr10.writeTo(writer);
  TestResult tr11=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
  String getchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
  if (getchar1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING1,rurl);
    tb.writeTo(writer);
  }
 else {
    String getCharEncde=portletReq.getCharacterEncoding();
    if (getCharEncde != null) {
      tr11.setTcSuccess(true);
    }
 else {
      tr11.appendTcDetail("String_Node_Str");
    }
  }
  tr11.writeTo(writer);
  TestResult tr12=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
  String getchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
  if (getchar2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCHARACTERENCODING2,rurl);
    tb.writeTo(writer);
  }
 else {
    tr12.setTcSuccess(true);
    tr12.appendTcDetail("String_Node_Str");
  }
  tr12.writeTo(writer);
  TestResult tr13=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
  String getCnt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
  if (getCnt1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr13.setTcSuccess(true);
    tr13.appendTcDetail("String_Node_Str");
  }
  tr13.writeTo(writer);
  TestResult tr14=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
  String getCnt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
  if (getCnt2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTTYPE2,rurl);
    tb.writeTo(writer);
  }
 else {
    tr14.setTcSuccess(true);
    tr14.appendTcDetail("String_Node_Str");
  }
  tr14.writeTo(writer);
  TestResult tr15=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
  String getLngt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
  if (getLngt1 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH1,rurl);
    tb.writeTo(writer);
  }
 else {
    tr15.setTcSuccess(true);
  }
  tr15.writeTo(writer);
  TestResult tr16=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
  String getLngt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
  if (getLngt2 == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETCONTENTLENGTH2,rurl);
    tb.writeTo(writer);
  }
 else {
    int getConLgt=portletReq.getContentLength();
    if (getConLgt == -1) {
      tr16.setTcSuccess(true);
    }
 else {
      tr16.appendTcDetail("String_Node_Str" + getConLgt);
    }
  }
  tr16.writeTo(writer);
  TestResult tr17=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
  String getMethd=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
  if (getMethd == null) {
    PortletURL rurl=portletResp.createActionURL();
    rurl.setParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD,V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD);
    TestButton tb=new TestButton(V2REQUESTTESTS_CLIENTDATAREQUEST_APIRESOURCE_GETMETHOD,rurl);
    tb.writeTo(writer);
  }
 else {
    String getmethod=portletReq.getMethod();
    if (getmethod != null) {
      tr17.setTcSuccess(true);
    }
 else {
      tr17.appendTcDetail("String_Node_Str" + getmethod);
    }
  }
  tr17.writeTo(writer);
}