@Override
	@Transactional
	public String getResource(String id)
	{
		final TemplateCall call = templater.template("resource_template");

		final ResourceTemplateEntity entity = resourceProvisionService.getOrCreateTemplate(id);

		if (entity == null)
			throw new RestException(404, "No such resource with id: " + id);

		call.set("entity", entity);
		call.set("nonce", nonceStore.getValue());

		return call.process();
	}
@ Override @ Transactional public String getResource ( String id ) { final TemplateCall call = templater . template ( "resource_template" ) ; final ResourceTemplateEntity entity = resourceProvisionService . getOrCreateTemplate ( id ) ; if ( entity == null ) throw new RestException ( 404 , "No such resource with id: " + id ) ; call . set ( "entity" , entity ) ; call . set ( "nonce" , nonceStore . getValue ( ) ) ; return call . process ( ) ; }
N.B. transaction may be read-write because this read operation may result in reading a new template (or discovering an
update was made to the template)

@param id

@return