Moved from kryptnostic java client