public void refreshCacheFromWritable(byte[] table, byte[] data) throws IOException { if (data != null && data.length > 0) { DataInput in = new DataInputStream(new ByteArrayInputStream(data)); ListMultimap<String, TablePermission> perms = AccessControlLists.readPermissions(in, conf); if (perms != null) { if (Bytes.equals(table, AccessControlLists.ACL_GLOBAL_NAME)) { updateGlobalCache(perms); } else { updateTableCache(table, perms); } } } else { LOG.debug("Skipping permission cache refresh because writable data is empty"); } }