if(binding == null && type == null){
throw new TagException(this.tag, "One of the attribute 'binding' or type' is required");
}
if (binding == null && type != null) {
if (!type.isLiteral()) {
throw new TagAttributeException(this.tag, this.type, Messages.getMessage(Messages.MUST_BE_LITERAL_ERROR));
}
try {
this.listenerType = Class.forName(type.getValue());
} catch (Exception e) {
throw new TagAttributeException(this.tag, this.type, e);
}
}
}