Automatic process deployment not working in fat jar

Hello, of course the moment I hit post button I realized, why I can’t override the original class.
My guess, where the problems is, was probably correct.

Unfortunately, the fix won’t be that easy as suggested above, as the real path is jar archive inside jar archive, so whole code will have to be refactored. The method

protected void handleDirectory(File directory, String rootPath, String localPath, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) {

will have to get on more parameter with the path to the processes jar insided the main jar, and if the parameter is not null, the method will have to look the processes one level deeper inside the zip file.

Or am I doing something wrong and the deployment is working correctly?