public boolean createUser(Employee employee) {
		Connection connection = new DbConnection().getConnection();
		PreparedStatement preparedStatement = null;
		boolean flag = false;
		boolean isUserAlreadyExists = isUserAlreadyExists(employee
				.getEmployeeId());
		if (!isUserAlreadyExists) {
			String password = RandomStringUtil.getDefaultPasswordString();
			try {
				preparedStatement = connection
						.prepareStatement(INSERT_NEW_USER);
				preparedStatement.setString(1, employee.getEmployeeId());
				preparedStatement.setString(2, password);
				preparedStatement.setInt(3, employee.getDepartment());
				preparedStatement.executeUpdate();
				flag = true;
				addEmployeeDetails(employee);
			} catch (SQLException e) {
				m_logger.error(e.getMessage(), e);
			} finally {
				try {
					if (connection != null)
						connection.close();
					if (preparedStatement != null)
						preparedStatement.close();
				} catch (SQLException e) {
					m_logger.error(e.getMessage(), e);
				}
			}
		}
		return flag;
	}