moved generatal methods to JCUtil class
moved general methods to JCUtil class