new BasicDBObject("_id", new ObjectId(id)),
new BasicDBObject("$or", radioIdOrGlobal));
final DBObject o = findOne(InputImpl.class, new BasicDBObject("$and", query));
if (o == null) {
throw new NotFoundException();
} else {
return new InputImpl((ObjectId) o.get("_id"), o.toMap());
}
}