if (className == null)
throw new ClassNotFoundException();
List<ClassModel> list = new ArrayList<ClassModel>();
Iterator<Model> i = ModelConverters.readAll(Class.forName(className)).iterator();
while (i.hasNext())
list.add(new ClassModel(i.next()));
for (ClassModel model : list){
if (model.qualifiedType.equals(className))
return Response.ok(model).build();
}
throw new ClassNotFoundException();