code: protected void onClickOk() {
  
          CmsResource res1 = m_context.getResources().get(0);
          CmsResource res2 = m_otherResource;
          try {
              CmsObject cms = A_CmsUI.getCmsObject();
              CmsLocaleGroupService groupService = cms.getLocaleGroupService();
              groupService.detachLocaleGroup(res1, res2);
              m_context.finish(Arrays.asList(m_context.getResources().get(0).getStructureId()));
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage());
              m_context.error(e);
          }
  
      }
docs: Called when the OK button is clicked.<p>