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());
    }
  }
  /**
   * Converts the soap model instance into a normal model instance.
   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static Phone toModel(PhoneSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Phone model = new PhoneImpl();

    model.setMvccVersion(soapModel.getMvccVersion());
    model.setUuid(soapModel.getUuid());
    model.setPhoneId(soapModel.getPhoneId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setUserId(soapModel.getUserId());
    model.setUserName(soapModel.getUserName());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setClassNameId(soapModel.getClassNameId());
    model.setClassPK(soapModel.getClassPK());
    model.setNumber(soapModel.getNumber());
    model.setExtension(soapModel.getExtension());
    model.setTypeId(soapModel.getTypeId());
    model.setPrimary(soapModel.getPrimary());

    return model;
  }