// try to get the type from the 'type'-attribute and default to
// Object.class, if no type-attribute was set.
Class<?> type = Object.class;
Object obj = target.getValue("type");
if ((null != obj) && !(obj instanceof Class)) {
TagValueExpression typeVE = (TagValueExpression) obj;
Object value = typeVE.getValue(ctx);
if (value instanceof Class<?>) {
type = (Class<?>) value;
} else if (value != null) {
try {
type = Util.loadClass(String.valueOf(value), this);