Use geometryfactory.toGeometry(Envelope)