@Override
 @SuppressWarnings("unchecked")
 // doPrivileged() returns the correct type
 public Enumeration<String> getAttributeNames() {
   if (SecurityUtil.isPackageProtectionEnabled()) {
     return (Enumeration<String>) doPrivileged("getAttributeNames", null);
   } else {
     return context.getAttributeNames();
   }
 }