Creates a new Java singleton class. This template is useful for creating new classes allowing single instance.