//add children element to conform to file API structure
JSONArray children = new JSONArray();
IMetaStore metaStore = OrionConfiguration.getMetaStore();
for (String projectName : workspace.getProjectNames()) {
try {
ProjectInfo project = metaStore.readProject(workspace.getUniqueId(), projectName);
//augment project objects with their location
JSONObject projectObject = new JSONObject();
projectObject.put(ProtocolConstants.KEY_ID, project.getUniqueId());
//this is the location of the project metadata
projectObject.put(ProtocolConstants.KEY_LOCATION, URIUtil.append(projectBaseLocation, projectName));