private void addProperty(Property prop,int index,Map<String,Property> keys_map,String key_name) throws MalformedObjectNameException {
  if (keys_map.containsKey(key_name))   throw new MalformedObjectNameException("key `" + key_name + "' already defined");
  if (index == _kp_array.length) {
    Property[] tmp_prop_array=new Property[index + 10];
    System.arraycopy(_kp_array,0,tmp_prop_array,0,index);
    _kp_array=tmp_prop_array;
  }
  _kp_array[index]=prop;
  keys_map.put(key_name,prop);
}

private void addProperty ( Property prop , int index , Map < String , Property > keys_map , String key_name ) throws MalformedObjectNameException { if ( keys_map . containsKey ( key_name ) ) throw new MalformedObjectNameException ( "key `" + key_name + "' already defined" ) ; if ( index == _kp_array . length ) { Property [ ] tmp_prop_array = new Property [ index + 10 ] ; System . arraycopy ( _kp_array , 0 , tmp_prop_array , 0 , index ) ; _kp_array = tmp_prop_array ; } _kp_array [ index ] = prop ; keys_map . put ( key_name , prop ) ; }
add passed property to the list at the given index for the passed key name
