Hi Kai,
When Configuring the Portal Proxy Service the only thing that it does (after restarting the service) is to set the java.lang.System properties.
It is up to the implementation of URLConnection within the JVM to use those System properties while opening the connection.
So I believe you just need to refrain from using your own proxy in the code.
Best Regards,
Dror.