*/
public static String pformat(Model model, String propName, GlobalFormat format) {
if(model == null) return null;
try {
// resolve the property
final IPropertyValue pv = model.getPropertyValue(propName);
// self formatting type?
if(pv.getType().isSelfFormatting()) {
return ((ISelfFormattingPropertyValue) pv).asString();
}
// format the value..
return Fmt.format(pv.getValue(), format);
}
catch(final UnsetPropertyException e) {
return null;
}
catch(final NullNodeInPropPathException e) {