public static GadgetSoap toSoapModel(Gadget model) {
    GadgetSoap soapModel = new GadgetSoap();

    soapModel.setUuid(model.getUuid());
    soapModel.setGadgetId(model.getGadgetId());
    soapModel.setCompanyId(model.getCompanyId());
    soapModel.setCreateDate(model.getCreateDate());
    soapModel.setModifiedDate(model.getModifiedDate());
    soapModel.setName(model.getName());
    soapModel.setUrl(model.getUrl());
    soapModel.setPortletCategoryNames(model.getPortletCategoryNames());

    return soapModel;
  }
  /**
   * 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 Gadget toModel(GadgetSoap soapModel) {
    Gadget model = new GadgetImpl();

    model.setUuid(soapModel.getUuid());
    model.setGadgetId(soapModel.getGadgetId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setName(soapModel.getName());
    model.setUrl(soapModel.getUrl());
    model.setPortletCategoryNames(soapModel.getPortletCategoryNames());

    return model;
  }