Sorry for the monolog 
The following code is running know:
import sys
import snappy
from snappy import ProductIO, WKTReader
SubsetOp = snappy.jpy.get_type(‘org.esa.snap.core.gpf.common.SubsetOp’)
wkt = “MULTIPOLYGON (((417085.99999912607 5852152.0000229785, 416986.74999912473 5852142.0000229785, 416916.9999991239 5852141.000022978, 417065.7499991256 5852260.500022979, 416931.24999912427 5852351.00002298, 416765.49999912234 5852225.500022979, 416746.99999912194 5852237.0000229785, 416887.7499991235 5852350.000022979, 416812.9999991228 5852395.000022979, 416795.4999991227 5852395.50002298, 416772.9999991223 5852389.5000229785, 416752.2499991221 5852377.500022979, 416722.2499991217 5852352.500022979, 416673.2499991213 5852412.50002298, 416666.49999912106 5852420.5000229785, 416775.2499991223 5852513.00002298, 416784.74999912234 5852506.500022981, 416948.4999991245 5852396.00002298, 416954.7499991245 5852392.00002298, 417103.99999912584 5852291.000022981, 417270.24999912805 5852179.0000229785, 417274.99999912817 5852173.000022979, 417225.49999912747 5852167.000022979, 417191.52739912714 5852163.347022979, 417085.99999912607 5852152.0000229785)))”
geom = WKTReader().read (wkt)
print(“Reading…”)
product = ProductIO.readProduct(‘C:\Users\Savi\image2.dim’)
op = SubsetOp()
op.setSourceProduct(product)
op.setGeoRegion(geom)
sub_product = op.getTargetProduct()
print(“Writing…”)
ProductIO.writeProduct(sub_product, ‘C:\Users\Savi\subset’, “BEAM-DIMAP”)
print(“Done.”)
But i recieve a product without bands amd following error message:
C:\Python27\python.exe C:/Users/Niels/.PyCharmCE2018.1/config/scratches/SubsetOp.py
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
Reading…
INFO: org.hsqldb.persist.Logger: dataFileCache open start
WARNING: org.esa.snap.core.gpf.common.SubsetOp: No intersection with source product boundary image2
Writing…
Done.
Process finished with exit code 0