class Project implements Serializable, Runnable {

    boolean checkOnlySinceLastBuild() {
        if (lastBuild == null || lastSuccessfulBuild == null) {
            return false;
        }

        final long lastBuildLong = lastBuild.getTime();
        final long timeDifference = lastBuildLong - lastSuccessfulBuild.getTime();
        final boolean moreThanASecond = timeDifference > DateUtil.ONE_SECOND;

        return !buildAfterFailed && moreThanASecond;
    }

    public  Project();

}