public static com.liferay.portal.model.PhoneSoap updatePhone(
      long phoneId,
      java.lang.String number,
      java.lang.String extension,
      int typeId,
      boolean primary)
      throws RemoteException {
    try {
      com.liferay.portal.model.Phone returnValue =
          PhoneServiceUtil.updatePhone(phoneId, number, extension, typeId, primary);

      return com.liferay.portal.model.PhoneSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }