// Redirect by defaul to the lst of users.
router.attachDefault(new Redirector(getContext(), "/users",
Redirector.MODE_CLIENT_PERMANENT));
final Directory imgDirectory = new Directory(getContext(),
LocalReference.createFileReference(webRootPath + "/images"));
// Add a route for the image resources
router.attach("/images", imgDirectory);
final Directory cssDirectory = new Directory(getContext(),
LocalReference
.createFileReference(webRootPath + "/stylesheets"));
// Add a route for the CSS resources
router.attach("/stylesheets", cssDirectory);