}
public static XopType createXopObject(Class<?> clazz)
throws IOException {
XopType xopObj = new XopType();
xopObj.setName("hello world");
URL url1 = clazz.getResource("my.wav");
File file = new File(url1.getFile());
FileInputStream fi = new FileInputStream(file);
byte[] buffer = new byte[(int) file.length()];
fi.read(buffer);
xopObj.setAttachinfo(buffer);
return xopObj;
}