@SuppressWarnings({"rawtypes", "unchecked" })
protected void outputFilesForConfigClass(Class<?> clazz) throws IOException {
System.out.println("Outputting files for " + clazz);
ConfigSearchRequest searchRequest = new ConfigSearchRequest(clazz);
ConfigSearchResult searchResult = getConfigMaster().search(searchRequest);
Set<ConfigDocument> latest = new HashSet<ConfigDocument>();
for (Object documentObject : searchResult.getDocuments()) {
ConfigDocument document = (ConfigDocument) documentObject;
latest.add(getConfigMaster().get(document.getObjectId(), VersionCorrection.LATEST));
}
FudgeSerializer serializer = new FudgeSerializer(OpenGammaFudgeContext.getInstance());