public static void handleLogIn(DataInputStream dis) throws Exception {
    try {
      int size = dis.readInt();

      if (size == 0) {
        throw new IOException(Text.NO_ORGUNIT_ERROR());
      } else {
        for (int i = 0; i < size; i++) {
          OrgUnit orgUnit = new OrgUnit();
          orgUnit.deSerialize(dis);
          orgUnitVector.addElement(orgUnit);
          OrgUnitRecordStore.saveOrgUnit(orgUnit);
        }
        ConnectionManager.getDhisMIDlet().getPinView().preparePinFormForFirstTime();
        ConnectionManager.getDhisMIDlet().getPinView().showView();
        // ConnectionManager.downloadAllResource( orgUnitVector );
      }
    } finally {
      try {
        if (dis != null) dis.close();
        System.gc();
      } catch (IOException ioe) {
        ioe.printStackTrace();
        LogMan.log("Network,Login," + CLASS_TAG, ioe);
      }
    }
  }