protected void injectPathParams(Object o, Map<String, String> annotatedPathVars){
/* now look for appropriate annotations and fill the variables accordingly */
for (Field field : o.getClass().getDeclaredFields()) {
if (field.isAnnotationPresent(PathParam.class)) {
PathParam annotation = field.getAnnotation(PathParam.class);
String name = annotation.value();
if (name.isEmpty()) {
name = field.getName();
}
if (annotatedPathVars.containsKey(name)) {
try {