@@ -0,0 +1,1341 @@
+package helpers;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport java.io.BufferedWriter;%0Aimport java.io.File;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0A%0A/**%0A * Operations regarding PID.%0A */%0Apublic class PidManipulation %7B%0A    private static Logger logger = LoggerFactory.getLogger(PidManipulation.class);%0A%0A    /**%0A     * Write program PID to file.%0A     * @param path where to write the pid.%0A     */%0A    public static void writeOwnPidToFile(String path) %7B%0A        try %7B%0A            File file = new File(path);%0A            file.getParentFile().mkdir();%0A            if (!file.exists()) %7B%0A                try %7B%0A                    file.createNewFile();%0A                %7D catch (IOException e) %7B%0A                    logger.error(e.getMessage(), e);%0A                %7D%0A            %7D%0A%0A            FileWriter fw = new FileWriter(file.getAbsolutePath());%0A            BufferedWriter bw = new BufferedWriter(fw);%0A            bw.write(getPid());%0A            bw.close();%0A%0A        %7D catch (IOException e) %7B%0A            logger.error(e.getMessage(), e);%0A        %7D%0A    %7D%0A%0A    /**%0A     * Obtain PID.%0A     *%0A     * @return PID of program.%0A     */%0A    public static String getPid() %7B%0A        String processName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();%0A        return processName.split(%22@%22)%5B0%5D;%0A    %7D%0A%7D%0A

Add class for operations regarding PID.