Merge PT Query and submit action java files