public static AttributeValues fromSerializableHashtable(Hashtable<Object, Object> ht) {
   AttributeValues result = new AttributeValues();
   if (ht != null && !ht.isEmpty()) {
     for (Map.Entry<Object, Object> e : ht.entrySet()) {
       Object key = e.getKey();
       Object val = e.getValue();
       if (key.equals(DEFINED_KEY)) {
         result.defineAll(((Integer) val).intValue());
       } else {
         try {
           EAttribute ea = EAttribute.forAttribute((Attribute) key);
           if (ea != null) {
             result.set(ea, val);
           }
         } catch (ClassCastException ex) {
         }
       }
     }
   }
   return result;
 }