A clone from http://code.google.com/a/eclipselabs.org/p/spray/