code: public String getMethodVariables(String strMethodInterface)
      {
          int endChar = 0, startChar = 0;
          String strMethodVariables = "";
          int i = 0;
          boolean bBracketFound = false;
          for (i = 0; i < strMethodInterface.length(); i++)
          {
              if (strMethodInterface.charAt(i) == '<')
                  bBracketFound = true;
              if (strMethodInterface.charAt(i) == '>')
                  bBracketFound = false;
              if (bBracketFound)
                  continue;   // Skip the area between the brackets.
              if (strMethodInterface.charAt(i) == ' ')
                  startChar = i + 1;
              if (strMethodInterface.charAt(i) == ',')
              {
                  endChar = i;
                  if (endChar > startChar)
                  {
                      if (strMethodVariables.length() != 0)
                          strMethodVariables += ", ";
                      strMethodVariables += strMethodInterface.substring(startChar, endChar);
                  }
              }
          }
          endChar = i;
          if (endChar > startChar)
          {
              if (strMethodVariables.length() != 0)
                  strMethodVariables += ", ";
              strMethodVariables += strMethodInterface.substring(startChar, endChar);
          }
          return strMethodVariables;
      }
docs: GetMethodVariables.