Map<String, Serializable> properties = new TreeMap<String, Serializable>();
properties.put(PropertyIds.OBJECT_ID, (String) result.getPropertyById(PropertyIds.OBJECT_ID).getFirstValue());
properties.put(PropertyIds.OBJECT_TYPE_ID, (Serializable) result.getPropertyById(PropertyIds.OBJECT_TYPE_ID)
.getFirstValue());
properties.put(PropertyIds.NAME, (Serializable) result.getPropertyById(PropertyIds.NAME).getFirstValue());
properties.put(PropertyIds.CONTENT_STREAM_LENGTH, (Serializable) result.getPropertyById(
PropertyIds.CONTENT_STREAM_LENGTH).getFirstValue());
properties.put(PropertyIds.CONTENT_STREAM_MIME_TYPE, (Serializable) result.getPropertyById(
PropertyIds.CONTENT_STREAM_MIME_TYPE).getFirstValue());
properties.put(Resource.PROPERTY_TITLE, (Serializable) result.getPropertyById(Resource.PROPERTY_TITLE)
.getFirstValue());
properties.put(Resource.PROPERTY_MODIFIED_TIME, SqlUtils.getDateProperty(result,
Resource.PROPERTY_MODIFIED_TIME));
properties.put(Resource.PROPERTY_DESCRIPTION, (Serializable) result.getPropertyById(
Resource.PROPERTY_DESCRIPTION).getFirstValue());
properties.put(Asset.PROPERTY_AVERAGE_RATING, (Serializable) result.getPropertyById(
Asset.PROPERTY_AVERAGE_RATING).getFirstValue());
properties.put(Asset.PROPERTY_COMMENT_COUNT, (Serializable) result
.getPropertyById(Asset.PROPERTY_COMMENT_COUNT).getFirstValue());
properties.put(Asset.PROPERTY_TAGS, (Serializable) result.getPropertyMultivalueById(Asset.PROPERTY_TAGS));
properties.put(Asset.PROPERTY_PUBLISHED_TIME, SqlUtils.getDateProperty(result, Asset.PROPERTY_PUBLISHED_TIME));
properties.put(Asset.PROPERTY_AUTHOR, (Serializable) result.getPropertyById(Asset.PROPERTY_AUTHOR)
.getFirstValue());