}
@Override
public void setup(HtmlTable table) {
AssetMapper assetMapper = new AssetMapper(table.getTableConfiguration().getRequest(), getContext());
HttpServletRequest request = table.getTableConfiguration().getRequest();
Set<AssetStorageUnit> assetsToInject = null;
for (ExtraJs extraJs : table.getTableConfiguration().getExtraJs()) {
assetsToInject = new LinkedHashSet<AssetStorageUnit>();
// AssetQuery aq = new AssetQuery(table.getTableConfiguration().getRequest(), getContext()).;
for(String bundleName : extraJs.getBundles()){
assetsToInject.addAll(getContext().getBundleStorage().getBundleDag().getVertex(bundleName).getAssetStorageUnits());
}
Set<AssetStorageUnit> filteredAsus = new LinkedHashSet<AssetStorageUnit>();
for (AssetStorageUnit asu: assetsToInject) {
if (asu.getType().equals(AssetType.js)) {
filteredAsus.add(asu);
}
}
Set<Asset> processedAssets = assetMapper.mapToAssets(filteredAsus);
Map<String, AssetLocator> locators = getContext().getAssetLocatorsMap();
for (Asset asset : processedAssets) {
AssetLocator locator = locators.get(asset.getConfigLocationKey());