private synchronized AdminPermission getAdminPermission(Bundle bundle, String action) { if (adminPermissions == null) adminPermissions = new HashMap(); Long ID = new Long(bundle.getBundleId()); HashMap bundlePermissions = (HashMap) adminPermissions.get(ID); if (bundlePermissions == null) { bundlePermissions = new HashMap(); adminPermissions.put(ID, bundlePermissions);
private AdminPermission getAdminPermission(Bundle bundle, String action) { synchronized(adminPermissions) { Long ID = new Long(bundle.getBundleId()); HashMap bundlePermissions = (HashMap) adminPermissions.get(ID); if (bundlePermissions == null) { bundlePermissions = new HashMap(); adminPermissions.put(ID, bundlePermissions); } AdminPermission result = (AdminPermission) bundlePermissions.get(action); if (result == null) { result = new AdminPermission(bundle, action); bundlePermissions.put(action, result); } return result;
	private synchronized AdminPermission getAdminPermission(Bundle bundle, String action) {		if (adminPermissions == null)			adminPermissions = new HashMap();		Long ID = new Long(bundle.getBundleId());		HashMap bundlePermissions = (HashMap) adminPermissions.get(ID);		if (bundlePermissions == null) {			bundlePermissions = new HashMap();			adminPermissions.put(ID, bundlePermissions);		}		AdminPermission result = (AdminPermission) bundlePermissions.get(action);		if (result == null) {			result = new AdminPermission(bundle, action);			bundlePermissions.put(action, result);		}		return result;	}