Add useful class
tranform other utils to java seg project