/**
   * Loads a GROUPValueObject through the business facade using information in the
   * HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String loadGROUP() throws ProcessingException {
    String sReturnValue = null;

    logMessage(FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE, "Inside GROUPWorkerBean::loadGROUP");

    try {
      // load the GROUPValueObject
      GROUPPrimaryKey primaryKey = getPrimaryKeyFromServletRequest();
      IGROUPValueObject valueObject = GROUPProxy.getGROUP(primaryKey);

      if (valueObject != null) {
        logMessage(
            FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE,
            "GROUPWorkerBean:loadGROUP() - successfully loaded - " + valueObject.toString());

        // assign the GROUPValueObject to the ApplicationUSOM
        ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();
        objectManager.setCurrentGROUP(valueObject);
      }
    } catch (Exception exc) {
      throw new ProcessingException("GROUPWorkerBean:loadGROUP() - " + exc, exc);
    }

    return (sReturnValue);
  }
  /**
   * Creates a GROUPValueObject through the business facade using information in the
   * HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String createGROUP() throws ProcessingException {
    String sReturnValue = null;

    logMessage(FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE, "Inside GROUPWorkerBean::createGROUP");

    try {
      // Create the GROUPValueObject by calling the
      // static createGROUP method on GROUPProxy
      IGROUPValueObject valueObject = GROUPProxy.createGROUP(this.m_GROUPValueObject);

      if (valueObject != null) {
        // logMessage( FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE,  "GROUPWorkerBean:createGROUP() -
        // successfully created GROUPValueObject - " + valueObject.toString() );
        ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();
        objectManager.setCurrentGROUP(valueObject);
      }
      String[] users = this.getHttpServletRequest().getParameterValues("selectItems");
      if (users != null && users.length > 0) {
        for (int i = 0; i < users.length; i++) {
          GROUPUSERProxy.createGROUPUSER(
              new GROUPUSERValueObject(
                  new GROUPUSERPrimaryKey(users[i], valueObject.getGroupid())));
        }
      }
    } catch (Exception exc) {
      throw new ProcessingException("GROUPWorkerBean:createGROUP() - " + exc, exc);
    }

    return (sReturnValue);
  }