private long memAllocationUnit2Multiplier(String unit){
  Long res=multipliersByMemoryAllocationUnit.get(unit.replace(" ",""));
  if (res == null) {
    throw new IllegalArgumentException("Cannot map " + unit + " to a known unit");
  }
 else {
    return res;
  }
}

private long memAllocationUnit2Multiplier ( String unit ) { Long res = multipliersByMemoryAllocationUnit . get ( unit . replace ( " " , "" ) ) ; if ( res == null ) { throw new IllegalArgumentException ( "Cannot map " + unit + " to a known unit" ) ; } else { return res ; } }
convert a an allocationunit string to bytes multiplier , for example kb would produce 1024 .
