ApplicationSpecification spec = store.getApplication(Id.Application.from(accountId, appId));
if (spec != null) {
List<ProgramRecord> services = Lists.newArrayList();
for (Map.Entry<String, ServiceSpecification> entry : spec.getServices().entrySet()) {
ServiceSpecification specification = entry.getValue();
services.add(new ProgramRecord(ProgramType.SERVICE, appId, specification.getName(),
specification.getName(), specification.getDescription()));
}
responder.sendJson(HttpResponseStatus.OK, services);
} else {
responder.sendStatus(HttpResponseStatus.NOT_FOUND);