final RendererFactory domainObjectRendererFactory = rendererFactoryRegistry.find(RepresentationType.DOMAIN_OBJECT);
final DomainObjectReprRenderer domainObjectRenderer = (DomainObjectReprRenderer) domainObjectRendererFactory.newRenderer(getResourceContext(), null, JsonRepresentation.newMap());
final ObjectAdapter transientInstance = getResourceContext().getPersistenceSession().createInstance(domainTypeSpec);
domainObjectRenderer.with(transientInstance).includesSelf();
renderer.with(domainTypeSpec).withSelf(selfLink).withValue(domainObjectRenderer.render());
return responseOfOk(renderer, Caching.ONE_DAY).build();
}
private static String domainTypeFor(final String domainTypeStr, final String argumentsQueryString, final String argsParamName) {