private static String getXMLOutputFilterforXComponent(XComponent xComponent, StringBuffer suffix){
XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, xComponent);
if (xSI.supportsService("com.sun.star.text.TextDocument")){
resetBuffer(suffix, ".sxw");
return "swriter: StarOffice XML (Writer)";
}else if (xSI.supportsService("com.sun.star.sheet.SpreadsheetDocument")){
resetBuffer(suffix, ".sxc");
return "scalc: StarOffice XML (Calc)";
}else if (xSI.supportsService("com.sun.star.presentation.PresentationDocument")){
resetBuffer(suffix, ".sxi");
return "simpress: StarOffice XML (Impress)";