@Nullable public static NetworkParameters fromPmtProtocolID(String pmtProtocolId){
  if (pmtProtocolId.equals(PAYMENT_PROTOCOL_ID_MAINNET)) {
    return MainNetParams.get();
  }
 else   if (pmtProtocolId.equals(PAYMENT_PROTOCOL_ID_TESTNET)) {
    return TestNet3Params.get();
  }
 else {
    return null;
  }
}

@ Nullable public static NetworkParameters fromPmtProtocolID ( String pmtProtocolId ) { if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_MAINNET ) ) { return MainNetParams . get ( ) ; } else if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_TESTNET ) ) { return TestNet3Params . get ( ) ; } else { return null ; } }
returns the network parameters for the given string paymentprotocolid or null if not recognized .
