code: public MavenInstallation getMaven() {
          for( MavenInstallation i : getDescriptor().getInstallations() ) {
              if(mavenName !=null && mavenName.equals(i.getName()))
                  return i;
          }
          return null;
      }
docs: Gets the Maven to invoke,
  or null to invoke the default one.