* properties that have an @InheritPrincipal chain back to the Customer.
*/
.withPrincipalMapper(new DemoPrincipalMapper())
.withVerbose(true);
// The FlatPackResolver makes a FlatPack instance available through the Resources interface
toReturn.add(new FlatPackResolver(configuration));
// The FlatPackProvider installs MessageBodyReader/Writer behavior
toReturn.add(new FlatPackProvider());
// This is a Resource endpoint, where HTTP paths are resolved to method invocations
toReturn.add(new DemoResource(db));
return toReturn;