inplementation of CK metric in java plugin