/** Insert the Saas client call */
 @Override
 protected void insertSaasServiceAccessCode(boolean isInBlock) throws IOException {
   clearVariablePatterns();
   addVariablePattern(J2eeUtil.JSP_NAMES_PAGE, 1);
   try {
     String code = "";
     code +=
         J2eeUtil.getJspImports(
             getTargetDocument(), getStartPosition(), getBean().getSaasServicePackageName());
     code +=
         J2eeUtil.wrapWithTag(getCustomMethodBody(), getTargetDocument(), getStartPosition())
             + "\n";
     insert(code, true);
   } catch (BadLocationException ex) {
     throw new IOException(ex.getMessage());
   }
 }
  @Override
  protected String getCustomMethodBody() throws IOException {
    String paramUse = "";
    String paramDecl = "";
    String indent2 = "                 ";

    // Evaluate parameters (query(not fixed or apikey), header, template,...)
    List<ParameterInfo> params = getServiceMethodParameters();
    updateVariableNames(params);
    paramUse += Util.getHeaderOrParameterUsage(renameParameterNames(params));

    List<ParameterInfo> filterParams =
        J2eeUtil.filterJspParameters(super.getServiceMethodParameters());
    filterParams = renameParameterNames(filterParams);
    paramDecl += getHeaderOrParameterDeclaration(filterParams);
    return getCustomMethodBody(paramDecl, paramUse, getResultPattern(), indent2);
  }