List<JsonModelEntry> model = new ArrayList<JsonModelEntry>();
for (String type : spaceTypes) {
try {
ServiceRegistry serviceRegistry = AlfrescoUtil.getServiceRegistry();
QName qName = QName.createQName(type, serviceRegistry.getNamespaceService());
TypeDefinition td = serviceRegistry.getDictionaryService().getType(qName);
if (td != null) {
String title = td.getTitle();
if (StringUtils.isEmpty(title)) {
title = type;
}
model.add(new JsonModelEntry(type, title));
} else {