5556575859606162636465
if (config == null) { throw new ResourceException(CLIENT_ERROR_NOT_FOUND, "No such configuration: " + configurationID); } return new ModelRepresentation(config, factory, mediaType); } catch (StoreConfigException e) { throw new ResourceException(e); } }
2526272829303132333435
throws ResourceException { try { Model schemas = getRepositoryManager().getConfigTemplateManager().getSchemas(); schemas = new ModelOrganizer(schemas).organize(); return new ModelRepresentation(schemas, factory, mediaType); } catch (StoreConfigException e) { throw new ResourceException(e); } }
5455565758596061626364
if (template == null) { throw new ResourceException(CLIENT_ERROR_NOT_FOUND, "No such template: " + templateID); } return new ModelRepresentation(template.getModel(), factory, mediaType); } catch (StoreConfigException e) { throw new ResourceException(e); } }
6869707172737475767778
if (data.supportsIsolation(isolation)) { add(model, subj, uf, "supportsIsolation", lf, isolation); } } return new ModelRepresentation(model, factory, mediaType); } catch (Exception e) { throw new ResourceException(e); } }