code: static public LdapURL[] getLdapURLs(Attribute attr) throws WIMException {
          final String METHODNAME = "getLdapURLs";
  
          LdapURL[] ldapURLs = new LdapURL[0];
          if (attr != null) {
              List<LdapURL> ldapURLList = new ArrayList<LdapURL>(attr.size());
              try {
                  for (NamingEnumeration<?> enu = attr.getAll(); enu.hasMoreElements();) {
                      LdapURL ldapURL = new LdapURL((String) (enu.nextElement()));
                      if (ldapURL.parsedOK()) {
                          ldapURLList.add(ldapURL);
                      } else {
                          if (tc.isDebugEnabled()) {
                              Tr.debug(tc, METHODNAME + " Member URL query: " + ldapURL.get_url() + " is invalid and ingored.");
                          }
                      }
                  }
              } catch (NamingException e) {
                  throw new WIMSystemException(WIMMessageKey.NAMING_EXCEPTION, Tr.formatMessage(
                                                                                                tc,
                                                                                                WIMMessageKey.NAMING_EXCEPTION,
                                                                                                WIMMessageHelper.generateMsgParms(e.toString(true))));
              }
              ldapURLs = ldapURLList.toArray(ldapURLs);
          }
          return ldapURLs;
      }
docs: Gets the LdapURL array from the given dynamic member attribute.
  
  @param attr The dynamic member attribute.
  @return The LdapURL array.
  @throws WIMException