This is a simple singleton example in Java.