public Object run() { List allBundles = bundles.getBundles(); int size = allBundles.size(); for (int i = 0; i < size; i++) { AbstractBundle bundle = (AbstractBundle) allBundles.get(i); if (finalLocation.equals(bundle.getLocation())) { return (bundle);
public Object run() throws Exception { checkAdminPermission(bundle, AdminPermission.LIFECYCLE); return null;
				public Object run() {					List allBundles = bundles.getBundles();					int size = allBundles.size();					for (int i = 0; i < size; i++) {						AbstractBundle bundle = (AbstractBundle) allBundles.get(i);						if (finalLocation.equals(bundle.getLocation())) {							return (bundle);						}					}					return (null);				}