Utility class to easily use join and fork feature from java