}
} else if (type.equals("TextField")) {
Object xField = xPropSet.getPropertyValue("TextField");
XServiceInfo xService = (XServiceInfo)
UnoRuntime.queryInterface(XServiceInfo.class, xField);
if (xService.supportsService(
"com.sun.star.text.textfield.MetadataField"))
{
XMetadatable xMeta = (XMetadatable)
UnoRuntime.queryInterface(XMetadatable.class, xField);
StringPair xmlid = xMeta.getMetadataReference();