Hi Elmar,
It seems you are using incorrect code. You should use,
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
Also, as Amit already mentioned DynamicConfiguration can't be accessed in standalone mode. It works at runtime end to end
Best Regards,
Praveen Gujjeti