public void doService() {
logger.debug("IN");
try {
JSONArray toReturn = new JSONArray();
IObjMetadataDAO metadataDAO = DAOFactory.getObjMetadataDAO();
List results = metadataDAO.loadAllObjMetadata();
ArrayList objects = new ArrayList();
for (int i = 0; i < results.size(); i++) {
// look for binary content mimetype
ObjMetadata metadata = (ObjMetadata)results.get(i);
objects.add(metadata);