*/
public byte[] getData(String dataModelID, String format) {
DataConversionService converter = (DataConversionService)
ciContext.getService(DataConversionService.class.getName());
Data dm = getDataModel(dataModelID);
try {
dm = converter.convert(dm, format);
} catch (ConversionException e1) {
dm = null;
}
byte[] data = null;
if (dm != null && dm.getData() instanceof File) {
File file = (File) dm.getData();
if (file.exists()) {
try {
FileInputStream in = new FileInputStream(file);
byte[] inData = new byte[(int)file.length()];