 		
 		if (action == PACKAGE_SHOW || action == GROUP_SHOW || action == TAG_SHOW)
 			return metadata['name'] || metadata['description'] || metadata['url']
-				|| result['title'] || result['display_name'] || result['name']
+				|| (result is String ? result as String : (result['title'] || result['display_name'] || result['name']))
 				|| params['id'];
 		
 		if (action == GET_DATASOURCE)

			return internalNode.hasChildBranches();
		
		if (action == PACKAGE_SHOW)
			return result['resources'] is Array && (result['resources'] as Array).length;
		if (action == GROUP_SHOW || action == TAG_SHOW)
			return result['packages'] is Array && (result['packages'] as Array).length;
		
		return action != GET_DATASOURCE && action != NO_ACTION;
	}

		return _childNodes;
	}
	
	private const _KEY_ORDER:Array = ['title', 'display_name', 'name', 'description', 'format', 'resource_type', 'url', 'mimetype', 'created', 'revision_timestamp'];
	private function keySort(a:Object, b:Object):int
	{
		var order:Array = _KEY_ORDER;
