private Channel buildChannel() {
   Channel channel = new Channel();
   channel.setActive(this.isActive());
   channel.setCategory(this.getCategory());
   channel.setContentType(this.getContentType());
   channel.setDescription(this.getDescription());
   channel.setFeedType(this.getFeedType());
   channel.setTitle(this.getTitle());
   channel.setFilters(this.getFilters());
   if (this.getStrutsAction() == ApsAdminSystemConstants.EDIT) {
     channel.setId(this.getId());
   }
   if (this.getMaxContentsSize() > 0) {
     channel.setMaxContentsSize(this.getMaxContentsSize());
   }
   return channel;
 }
 @Override
 public String trash() {
   try {
     if (0 == this.getId()) {
       this.addActionError(this.getText("jprss.message.rss.invalidId"));
       return INPUT;
     }
     this.setStrutsAction(ApsAdminSystemConstants.DELETE);
     Channel channel = this.getRssManager().getChannel(this.getId());
     this.setActive(channel.isActive());
     this.setCategory(channel.getCategory());
     this.setContentType(channel.getContentType());
     this.setDescription(channel.getDescription());
     this.setFeedType(channel.getFeedType());
     this.setFilters(channel.getFilters());
     this.setTitle(channel.getTitle());
     this.setMaxContentsSize(channel.getMaxContentsSize());
   } catch (Throwable t) {
     ApsSystemUtils.logThrowable(t, this, "trash");
     return FAILURE;
   }
   return SUCCESS;
 }