code: public static Attribute cloneAttribute(String newAttrName, Attribute attr) throws WIMSystemException {
          Attribute newAttr = new BasicAttribute(newAttrName);
          try {
              for (NamingEnumeration<?> neu = attr.getAll(); neu.hasMoreElements();) {
                  newAttr.add(neu.nextElement());
              }
          } catch (NamingException e) {
              throw new WIMSystemException(WIMMessageKey.NAMING_EXCEPTION, Tr.formatMessage(tc, WIMMessageKey.NAMING_EXCEPTION, WIMMessageHelper.generateMsgParms(e.toString(true))));
          }
          return newAttr;
      }
docs: Clone the specified attribute with a new name.
  
  @param newAttrName The new name of the attribute
  @param attr The Attribute object to be cloned.
  @return The cloned Attribute object with the new name.
  @throws WIMSystemException