try {
Configuration.getConnectionPool().executeQuery(qp);
} catch (SQLException e) {
Logger.fatal("Couldn't execute query", e);
throw new NoSuchProjectException("A SQLException was the cause: "
+ e.getMessage());
}
if (qp.getResultCount() < 1) {
throw new NoSuchProjectException("No such record exists.");
}
return createObjectFromQueryParser(Project.class, qp);
}