adding routes, resource placeholders and a random generator using apache commons