code: public static String findMavenVersion( String bundleVersion ) {
  
  		String result = bundleVersion;
  		if( bundleVersion != null ) {
  			result = bundleVersion.replaceAll( "(?i:(\\.|-)SNAPSHOT$)", "-SNAPSHOT" );
  
  			Pattern pattern = Pattern.compile( "(\\d+\\.\\d+)\\.0(-SNAPSHOT)?$" );
  			Matcher m = pattern.matcher( result );
  			if( m.find())
  				result = m.replaceFirst( "$1$2" );
  		}
  
  		return result;
  	}
docs: Finds the Roboconf version from the bundle version.
  <p>
  If the third digit in the version is 0, then we remove it.
  </p>
  <p>
  Bundle-version = 0.4.0 =&gt; 0.4
  <br />
  Bundle-version = 0.4.0-SNAPSHOT =&gt; 0.4-SNAPSHOT
  <br />
  Bundle-version = 0.4.1 =&gt; 0.4.1
  </p>
  
  @param bundleVersion the bundle version (can be null)
  @return null if the bundle version was null, or the updated version otherwise