Attribute[] attrs = service.getAttributes().toArray();
for (int j=0; j<attrs.length; j++) {
    String attrName = attrs[j].getName();

    // Retrieve the string version of the attribute value
    String attrValue = attrs[j].toString();

    process(service, attrName, attrValue);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.