@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public void newBuilding(
@FormParam("buildingName") String buildingName,
@Context HttpServletResponse servletResponse) throws IOException {
BuildingDao dao = new BuildingDao();
Building b = new Building();
String newBuildingName = URLDecoder.decode(buildingName, "UTF-8");
b.setBuildingName(newBuildingName);
dao.create(b);
URI uri = uriInfo.getAbsolutePathBuilder().path(b.getBuildingId().toString()).build();
Response.created(uri).build();
servletResponse.sendRedirect("../pages/new_building.html");