@POST
	@Consumes(MediaType.LIBROS_API_USER)
	@Produces(MediaType.LIBROS_API_USER)
	public User createUser(User user) {
		// TODO: get connection from database
		Connection conn = null;
		Statement stmt = null;
		try {
			conn = ds.getConnection();
		} catch (SQLException e) {
			throw new ServiceUnavailableException(e.getMessage());
		}
		try {
			stmt = conn.createStatement();
			String update = null; // TODO: create update query
			update = "INSERT INTO users (username,name,email) VALUES ('"
					+ user.getUsername() + "','" + user.getName() + "','"
					+ user.getEmail() + "')";
			int rows = stmt.executeUpdate(update,
					Statement.RETURN_GENERATED_KEYS);
			if (rows != 0) {
				String sql = "SELECT * FROM users WHERE username='"
						+ user.getUsername() + "'";
				ResultSet rs = stmt.executeQuery(sql);
				rs.next();
				user.add(LibrosAPILinkBuilder.buildURIUserName(uriInfo,
						rs.getString("username"), rel));
				// TODO: Retrieve the created sting from the database to get all
				// the remaining fields
			} else
				throw new UserNotFoundException();
		} catch (SQLException e) {
			throw new InternalServerException(e.getMessage());
		} finally {
			try {
				stmt.close();
				conn.close();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return user;
	}