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

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

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