public static void deletePhone(long phoneId) throws RemoteException {
    try {
      PhoneServiceUtil.deletePhone(phoneId);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.PhoneSoap getPhone(long phoneId) throws RemoteException {
    try {
      com.liferay.portal.model.Phone returnValue = PhoneServiceUtil.getPhone(phoneId);

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

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.PhoneSoap[] getPhones(
      java.lang.String className, long classPK) throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Phone> returnValue =
          PhoneServiceUtil.getPhones(className, classPK);

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

      throw new RemoteException(e.getMessage());
    }
  }
  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());
    }
  }