code: public static String getEditState(CmsUUID resourceId, boolean plainText, String backLink) {
  
          try {
              backLink = URLEncoder.encode(backLink, CmsEncoder.ENCODING_UTF_8);
          } catch (UnsupportedEncodingException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
          String state = "";
          state = A_CmsWorkplaceApp.addParamToState(state, CmsEditor.RESOURCE_ID_PREFIX, resourceId.toString());
          state = A_CmsWorkplaceApp.addParamToState(state, CmsEditor.PLAIN_TEXT_PREFIX, String.valueOf(plainText));
          state = A_CmsWorkplaceApp.addParamToState(state, CmsEditor.BACK_LINK_PREFIX, backLink);
          return state;
      }
docs: Returns the edit state for the given resource structure id.<p>
  
  @param resourceId the resource structure is
  @param plainText if plain text/source editing is required
  @param backLink the back link location
  
  @return the state