if (propertyList.size() > 0)
{
vc = new VelocityContext();
for (Iterator i = propertyList.iterator(); i.hasNext(); ) {
PropertyInfo pi = (PropertyInfo)i.next();
String name = pi.getName();
String type = pi.getType();
boolean optional = pi.isOptional();
Object defaultValue = pi.getDefaultValue();
if (name == null || name.length() == 0 || type == null || type.length() == 0)
throw new Exception("Null or empty name/type property metadata for template: " + ci.getName());
Object sentValue = map.get(name);