code: public ProfileMetadata[] queryHostProfileMetadata(String[] profileNames, Profile profile) throws RuntimeFault, RemoteException {
          return getVimService().queryHostProfileMetadata(getMOR(), profileNames,
              profile == null ? null : profile.getMOR());
      }
docs: SDK5.0 signature