@Override public void execute(JobExecutionContext context) throws JobExecutionException { String productId = context.getMergedJobDataMap().getString(JobStatus.TARGET_ID); Boolean lazy = context.getMergedJobDataMap().getBoolean(LAZY_REGEN); List<String> l = new ArrayList<String>(); l.add(productId); Set<Owner> owners = subAdapter.lookupOwnersByProduct(l); for (Owner owner : owners) { poolManager.refreshPools(owner, lazy); } context.setResult("Pools refreshed for product " + productId); }