made getConstant static