Common scripts implemented in Java