}
@Override
public Result execute() {
LOGGER.log(Level.FINER, "Executing query: {0}", this);
final DestroyableResource rootFolder = new TFolder(context, info, proxy, criteria, new HashSet<String>());
Result r = new CommonResult(new LimitedLengthResourcesAdapter(rootFolder,criteria.getMaxRecords())) {
@Override
public void destroy() {
rootFolder.destroy();
info.destroy();
}
};
LOGGER.log(Level.FINER, "Completed query execution: {0}", this);
return r;