/* (non-Javadoc)
   * @see com.tsa.puridiom.process.ITask#executeTask(java.lang.Object)
   */
  public Object executeTask(Object object) throws Exception {
    Map incomingRequest = (Map) object;

    try {
      String organizationId = (String) incomingRequest.get("Organization_organizationId");

      OrganizationManager.getInstance().removeOrganizationFromCache(organizationId);

      this.status = Status.SUCCEEDED;
    } catch (Exception e) {
      this.status = Status.FAILED;
      throw e;
    } finally {
      return null;
    }
  }
  public static void main(String[] args) throws Exception {
    try {
      Map incomingRequest = new HashMap();
      incomingRequest.put("companyName", "Kelli's Test Org");
      OrganizationRegisterNew test = new OrganizationRegisterNew();

      String organizationId = (String) test.executeTask(incomingRequest);

      System.out.println("Organization Id: " + organizationId);

      System.out.println(
          "Organization Valid: "
              + OrganizationManager.getInstance().isOrganizationValid(organizationId));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }