public void setAttribute(String name, Object value) { if (name == null) { throw new NullPointerException("null name parameter"); } if (attributes == null) { attributes = getHttpContext().getAttributes(); } attributes.put(name, value); }