@WebParamResolver(annotatedWith=WebPath.class)
public Object resolveWebpath(AnnotationMap annotationMap, Class paramType, RequestContext rc){
WebPath webPath = annotationMap.get(WebPath.class);
Object value;
//if the index has been set, then, return the single Path and convert to the appropriate type.
if (webPath.value() > -1) {
value = rc.getResourcePathAt(webPath.value(), paramType, null);
}
//otherwise, return the full path
else {
value = rc.getResourcePath();
}