public Item(int objId,ItemTemplate itemTemplate){
  super(objId);
  this.itemTemplate=itemTemplate;
  this.activationCount=itemTemplate.getActivationCount();
  if (itemTemplate.getExpireTime() != 0) {
    expireTime=((int)(System.currentTimeMillis() / 1000) + itemTemplate.getExpireTime() * 60) - 1;
  }
  int optionSlotBonus=itemTemplate.getOptionSlotBonus();
  if (optionSlotBonus != 0) {
    optionalSocket=-1;
  }
  this.persistentState=PersistentState.NEW;
  updateChargeInfo(0);
}

public Item ( int objId , ItemTemplate itemTemplate ) { super ( objId ) ; this . itemTemplate = itemTemplate ; this . activationCount = itemTemplate . getActivationCount ( ) ; if ( itemTemplate . getExpireTime ( ) != 0 ) { expireTime = ( ( int ) ( System . currentTimeMillis ( ) / 1000 ) + itemTemplate . getExpireTime ( ) * 60 ) - 1 ; } int optionSlotBonus = itemTemplate . getOptionSlotBonus ( ) ; if ( optionSlotBonus != 0 ) { optionalSocket = - 1 ; } this . persistentState = PersistentState . NEW ; updateChargeInfo ( 0 ) ; }
create simple item with minimum information
