public void afterPropertiesSet() throws Exception {
argumentsResolver.registerRequestParamResolver("folderId", new RequestParamArgumentResolver() {
public void addToArgumentsCache(ArgumentCandidatesCache cache, Object paramValue) {
if (paramValue != null) {
CMFolder folder = repositoryService.fetch(CMFolder.class, new NodeRef((String) paramValue));
cache.add(CMFolder.class, folder);
}
}
});
argumentsResolver.registerRequestParamResolver("contentId", new RequestParamArgumentResolver() {