class DialogDescriptorAttributeParser {

    public DialogDescriptorAttributes getAttributes(final Element el) {
        String name = el.getAttribute("name");
        DialogDescriptorUsage usage = getUsage(el.getAttribute("usage"));
        long validityValue = getValidityValue(el.getAttribute("validityValue"), name, usage);
        String comment = el.getAttribute("comment");
        DialogDescriptorAttributes attributes = createAttributes(name, usage, validityValue, comment);
        return attributes;
    }

}