public static void printPropertyInfo(XPropertySet PS, String name,
PrintWriter out) {
try {
XPropertySetInfo PSI = PS.getPropertySetInfo();
Property[] props = PSI.getProperties();
Property prop = PSI.getPropertyByName(name);
out.println("Property name is " + prop.Name);
out.println("Property handle is " + prop.Handle);
out.println("Property type is " + prop.Type.getTypeName());
out.println("Property current value is " +
PS.getPropertyValue(name));