public boolean isWhitelisted(String container, String gadgetUrl) { if (isWhitelistingEnabled(container)) { return hasGadgetAdminData(container, gadgetUrl); } else { // If the white list checking is not enabled just assume it is there return true; } }