@Override
	public boolean sendSubmission(Submission submission, String username)
			throws RemoteException {
		ContestTime ct = new ContestTime();
		if (ct.canSubmit()) {
			submission.setResult(Submission.RESULT_PENDING); // Set is as
																// pending
			submission.setTimeSubmitted(System.currentTimeMillis() / 1000); // Set
																			// submitted
																			// now
			submission.setOutput(""); // empty output
			submission.setContestant(DbAdapter
					.getContestantByUsername(username));
			DbAdapter.addSubmission(submission);
			return true;
		} else {
			return false;
		}
	}