https://code.google.com/p/jsontoken with OSGi support