public static Future<VersionIdentifier> retrieveLatestVersion(final ExecutorService e){
  return e.submit(new VersionRetriever());
}

public static Future < VersionIdentifier > retrieveLatestVersion ( final ExecutorService e ) { return e . submit ( new VersionRetriever ( ) ) ; }
will retrieve the latest version available in maven central . executes in single thread executor .
