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; }