Thote | #967 | Ported preprocessing logic for Child Register from js to java.