channel.setTitle("DSpace " + type + ": " + title);
String channelTitle = MessageFormat.format(labels.getString(clazz + ".feed.title"), new Object[]{type, title}); channel.setTitle(channelTitle);
    private Channel generateFeed(Context context, DSpaceObject dso)    		throws IOException, SQLException    {    	// container-level elements    	String objectUrl = ConfigurationManager.getBooleanProperty("webui.feed.localresolve")    		? HandleManager.resolveToURL(context, dso.getHandle())    		: HandleManager.getCanonicalForm(dso.getHandle());   	    	String dspaceUrl = ConfigurationManager.getProperty("dspace.url");    	String type = null;    	String description = null;    	String title = null;    	Bitstream logo = null;    	// browse scope    	BrowseScope scope = new BrowseScope(context);    	// the feed    	Channel channel = new Channel();    	    	if (dso.getType() == Constants.COLLECTION)    	{    		type = "collection";    		Collection col = (Collection)dso;           	description = col.getMetadata("short_description");           	title = col.getMetadata("name");           	logo = col.getLogo();           	scope.setScope(col);         }    	else if (dso.getType() == Constants.COMMUNITY)    	{    		type = "community";    		Community comm = (Community)dso;           	description = comm.getMetadata("short_description");           	title = comm.getMetadata("name");           	logo = comm.getLogo();    		scope.setScope(comm);    	}    				// put in container-level data        channel.setDescription(description);        channel.setLink(objectUrl);        channel.setTitle("DSpace " + type + ": " + title);    	if (logo != null)    	{    		// we use the path to the logo for this, the logo itself cannot    	    // be contained in the rdf. Not all RSS-viewers show this logo.    		Image image = new Image();    		image.setLink(objectUrl);    		image.setTitle("The Channel Image");    		image.setUrl(dspaceUrl + "/retrieve/" + logo.getID());    	    channel.setImage(image);    	}    	// this is a direct link to the search-engine of dspace. It searches    	// in the current collection. Since the current version of DSpace    	// can't search within collections anymore, this works only in older    	// version until this bug is fixed.    	TextInput input = new TextInput();    	input.setLink(dspaceUrl + "/simple-search");    	input.setDescription( "Search the Channel" );    	input.setTitle("The " + type + "'s search engine");    	input.setName("s");    	channel.setTextInput(input);		   		       	// gather & add items to the feed.    	scope.setTotal(itemCount);    	List results = Browse.getLastSubmitted(scope);    	List items = new ArrayList();    	for ( int i = 0; i < results.size(); i++ )    	{    		items.add( itemFromDSpaceItem(context, (Item)results.get(i)) );    	}    	channel.setItems(items);            	return channel;    }