ser.addAll(repos);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ser.serialize(new OutputStreamWriter(out), ser.PRETTY);
byte[] bytes = out.toByteArray();
XMLPersistenceMetaDataParser parser =
new XMLPersistenceMetaDataParser(conf);
parser.parse(new InputStreamReader
(new ByteArrayInputStream(bytes)), "bytes");
return parser.getRepository();
}