Shouldn't this be using the same modem that the context is associated with? At least if the contextPath property is set.