@Override
 @SuppressWarnings("unchecked") // doPrivileged() returns the correct type
 public Set<String> getResourcePaths(String path) {
   if (SecurityUtil.isPackageProtectionEnabled()) {
     return (Set<String>) doPrivileged("getResourcePaths", new Object[] {path});
   } else {
     return context.getResourcePaths(path);
   }
 }