private static IgniteRemoteStartSpecification processDefaults(@Nullable Map<String,Object> dflts) throws IgniteCheckedException {
  int port=DFLT_PORT;
  String uname=System.getProperty("user.name");
  String passwd=null;
  File key=null;
  int nodes=DFLT_NODES;
  String igniteHome=null;
  String cfg=DFLT_CFG;
  String script=null;
  IgniteLogger log=null;
  if (dflts != null) {
    if (dflts.get(PORT) != null)     port=(Integer)dflts.get(PORT);
    if (dflts.get(UNAME) != null)     uname=(String)dflts.get(UNAME);
    if (dflts.get(PASSWD) != null)     passwd=(String)dflts.get(PASSWD);
    if (dflts.get(KEY) != null)     key=(File)dflts.get(KEY);
    if (dflts.get(NODES) != null)     nodes=(Integer)dflts.get(NODES);
    if (dflts.get(IGNITE_HOME) != null)     igniteHome=(String)dflts.get(IGNITE_HOME);
    if (dflts.get(CFG) != null)     cfg=(String)dflts.get(CFG);
    if (dflts.get(SCRIPT) != null)     script=(String)dflts.get(SCRIPT);
    if (dflts.get(LOGGER) != null)     log=(IgniteLogger)dflts.get(LOGGER);
  }
  if (port <= 0)   throw new IgniteCheckedException("Invalid port number: " + port);
  if (nodes <= 0)   throw new IgniteCheckedException("Invalid number of nodes: " + nodes);
  return new IgniteRemoteStartSpecification(null,port,uname,passwd,key,nodes,igniteHome,cfg,script,log);
}

private static IgniteRemoteStartSpecification processDefaults ( @ Nullable Map < String , Object > dflts ) throws IgniteCheckedException { int port = DFLT_PORT ; String uname = System . getProperty ( "user.name" ) ; String passwd = null ; File key = null ; int nodes = DFLT_NODES ; String igniteHome = null ; String cfg = DFLT_CFG ; String script = null ; IgniteLogger log = null ; if ( dflts != null ) { if ( dflts . get ( PORT ) != null ) port = ( Integer ) dflts . get ( PORT ) ; if ( dflts . get ( UNAME ) != null ) uname = ( String ) dflts . get ( UNAME ) ; if ( dflts . get ( PASSWD ) != null ) passwd = ( String ) dflts . get ( PASSWD ) ; if ( dflts . get ( KEY ) != null ) key = ( File ) dflts . get ( KEY ) ; if ( dflts . get ( NODES ) != null ) nodes = ( Integer ) dflts . get ( NODES ) ; if ( dflts . get ( IGNITE_HOME ) != null ) igniteHome = ( String ) dflts . get ( IGNITE_HOME ) ; if ( dflts . get ( CFG ) != null ) cfg = ( String ) dflts . get ( CFG ) ; if ( dflts . get ( SCRIPT ) != null ) script = ( String ) dflts . get ( SCRIPT ) ; if ( dflts . get ( LOGGER ) != null ) log = ( IgniteLogger ) dflts . get ( LOGGER ) ; } if ( port <= 0 ) throw new IgniteCheckedException ( "Invalid port number: " + port ) ; if ( nodes <= 0 ) throw new IgniteCheckedException ( "Invalid number of nodes: " + nodes ) ; return new IgniteRemoteStartSpecification ( null , port , uname , passwd , key , nodes , igniteHome , cfg , script , log ) ; }
converts properties map to default specification .
