Registers this instance of the application. Returns true if the application is allowed to run or false when the application must exit immediately.
@param mainClass The main class of the application. Must not be null. This is used for determining the application ID and as the user node key for the preferences.
@param args The command line arguments. They are passed to an already running instance if found. Must not be null.
@return True if instance is allowed to start, false if not.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.