} else if (type.equalsIgnoreCase("task")) {
jsonMapper.readValue(file, Task.class);
} else if (type.equalsIgnoreCase("realtimeSchema")) {
jsonMapper.readValue(file, Schema.class);
} else {
throw new UOE("Unknown type[%s]", type);
}
}
catch (Exception e) {
System.out.println("INVALID JSON!");
throw Throwables.propagate(e);