private static transient org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ResourcesHandler.class.getName());
public CommandResponse actionRetrieve(CommandRequest request) throws Exception {
String name = request.getParameter("resName");
log.debug("Retrieving resource " + name);
Resource res = UIServices.lookup().getResourceManager().getResource(name);
if (res != null)
return res.getResourceAsResponse();
log.warn("Not found resource " + name + " (" + new String(Base64.decode(name)) + ") ");
return new SendErrorResponse(404);
}