public <P extends DbBackedProject<P, B>, B extends DbBackedBuild<P, B>> MongoRunMap<P, B> getBuildsAsMap(DbBackedProject project) {
return new MongoRunMap<P, B>(project);
}
public <T extends DbBackedBuild> T getFirstBuild(DbBackedProject project) {
DbBackedBuild build = getDatastore().createQuery(DbBackedBuild.class).
limit(1).order("-number").
get();
associateProject(project, build);