public short getMyselfEngineContactIdViaSimId(int simId) {
    if (simId < 0) {
      NmsLog.error(TAG, "simId < 0.");
      return -1;
    }

    SNmsSimInfo simInfo = NmsIpMessageApiNative.nmsGetSimInfoViaSimId(simId);
    if (simInfo == null) {
      NmsLog.error(TAG, "simInfo is null.");
      return -1;
    }

    return getEngineContactIdViaNumber(simInfo.number);
  }
  private Bitmap getMyselfAvatarViaSimId(int simId) {
    if (simId < 0) {
      NmsLog.error(TAG, "simId < 0..");
      return null;
    }

    SNmsSimInfo simInfo = NmsIpMessageApiNative.nmsGetSimInfoViaSimId(simId);
    if (simInfo == null) {
      NmsLog.error(TAG, "simInfo is null");
      return null;
    }

    Bitmap result = getSystemAvatarViaNumber(simInfo.number);
    if (result == null) {
      NmsProfileSettings userProfile = engineadapter.get().nmsUIGetUserInfoViaImsi(simInfo.imsi);
      if (userProfile != null) {
        result = userProfile.getProfileSettingsAvatar();
      }
    }

    return result;
  }